ChatFunctionTool - Python SDK

ChatFunctionTool method reference

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

Tool definition for function calling (regular function or OpenRouter built-in server tool)

Supported Types

components.ChatFunctionToolFunction

1value: components.ChatFunctionToolFunction = /* values here */

components.DatetimeServerTool

1value: components.DatetimeServerTool = /* values here */

components.ChatWebSearchServerTool

1value: components.ChatWebSearchServerTool = /* values here */

components.ChatWebSearchShorthand

1value: components.ChatWebSearchShorthand = /* values here */

components.ChatWebSearchShorthand

1value: components.ChatWebSearchShorthand = /* values here */

components.ChatWebSearchShorthand

1value: components.ChatWebSearchShorthand = /* values here */

components.ChatWebSearchShorthand

1value: components.ChatWebSearchShorthand = /* values here */