Python SDKAPI ReferenceComponentsChatFunctionToolFunction - Python SDKCopy pageChatFunctionToolFunction method referenceThe Python SDK and docs are currently in beta. Report issues on GitHub. Fields FieldTypeRequiredDescriptionExamplecache_controlOptional[components.ChatContentCacheControl]➖Cache control for the content part{"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