본문으로 건너뛰기

TemplateItem

Verified reusable computation template with example questions, shared slots, named queries, and code that combines query results. A single-query template uses one query with pass-through code.

nameName (string)필수

Stable name of the computation template within its template group.

description object

Human-readable explanation of the computation.

하나 이상(anyOf)
string
questionsstring[]필수

Example questions used to match requests to this template.

Possible values: >= 1

slots object[]

Input slots shared by every query in the template.

  • Array [
  • nameName (string)필수
    kindKind (string)

    Possible values: [string, number, value, list]

    기본값: string
    description object
    하나 이상(anyOf)
    string
    requiredRequired (boolean)
    기본값: true
    defaultDefault
  • ]
  • queries object[]필수

    Named queries whose results are passed to the computation code.

    Possible values: >= 1

  • Array [
  • nameName (string)필수
    table_idTable Id (string)필수
    toolTool (string)

    Possible values: [metrics, rows]

    기본값: metrics
    query object필수
    property name*any
  • ]
  • codeCode (string)필수

    Code that combines the named query results into the template output.

    TemplateItem
    {
    "name": "string",
    "description": "string",
    "questions": [
    "string"
    ],
    "slots": [
    {
    "name": "string",
    "kind": "string",
    "description": "string",
    "required": true
    }
    ],
    "queries": [
    {
    "name": "string",
    "table_id": "string",
    "tool": "metrics",
    "query": {}
    }
    ],
    "code": "string"
    }