ChatFunctionToolFunction - Go SDK

ChatFunctionToolFunction type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
CacheControl*components.ChatContentCacheControlCache control for the content part{"ttl": "5m","type": "ephemeral"}
Functioncomponents.ChatFunctionToolFunctionFunction✔️Function definition for tool calling{"description": "Get the current weather for a location","name": "get_weather","parameters": {"properties": {"location": {"description": "City name","type": "string"}
},
“required”: [
“location”
],
“type”: “object”
}
}
Typecomponents.ChatFunctionToolType✔️N/A