Tool details that the model may use to generate response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
A list of FunctionDeclarations available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a Functi
codeExecution
object
Enables the model to execute code as part of generation. Code execution is enabled by passing an empty object.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Tool",
"title": "Tool",
"type": "object",
"description": "Tool details that the model may use to generate response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.",
"properties": {
"functionDeclarations": {
"type": "array",
"description": "A list of FunctionDeclarations available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution.",
"items": {
"$ref": "#/components/schemas/FunctionDeclaration"
}
},
"codeExecution": {
"type": "object",
"description": "Enables the model to execute code as part of generation. Code execution is enabled by passing an empty object."
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.