You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Send gen_ai.tool.definitions with appropriate format #7973
Tool definitions are represented as a JSON array with objects whose "name", "description" and "type" properties correspond to the attributes on Execute Tool Spans. The objects also have a "parameters" property, whose format is given by JSON Schema draft-07.
Each tool definition has a name, a type, optionally parameters, and an optional description:
[
{
"name": "get_weather",
"description": "Get the current weather for a given location.",
"type": "function",
"parameters": {
"type": "object",
"properties": {
"productId": {
"description": "The unique identifier for a product",
"type": "integer"
},
"productName": {
"description": "Name of the product",
"type": "string"
},
"price": {
"description": "The price of the product",
"type": "number",
"exclusiveMinimum": 0
},
"tags": {
"description": "Tags for the product",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"dimensions": {
"type": "object",
"properties": {
"length": { "type": "number" },
"width": { "type": "number" },
"height": { "type": "number" }
},
"required": ["length", "width", "height"]
}
},
"required": ["productId", "productName", "price"]
}
},
...
]
Activity
linear-code commentedon Oct 13, 2026
PY-2957
google-genai: Sendgen_ai.tool.definitions#5764litellm: Sendgen_ai.tool.definitions#5766cohere: Sendgen_ai.tool.definitionswith appropriate format #5765pydantic-ai: Sendgen_ai.tool.definitions#5768langchain: Sendgen_ai.tool.definitionswith appropriate format #5769anthropic: Sendgen_ai.tool.definitionswith appropriate format #5763pydantic-ai: Sendgen_ai.tool.definitions#5768google-genai: Sendgen_ai.tool.definitions#5764litellm: Sendgen_ai.tool.definitions#5766