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.
- string
- null
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]
기본값:
stringdescription object
하나 이상(anyOf)
- string
- null
string
requiredRequired (boolean)
기본값:
truedefaultDefault
]
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]
기본값:
metricsquery 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"
}