Skip to main content

Parameters

ParameterTypeDefaultDescription
function_toolslist[ToolDefinition][]Function tools available for the model request
builtin_toolslist[AbstractBuiltinTool][]Built-in tools available for the model request
output_modeOutputMode'text'The output mode for the request
output_object`OutputObjectDefinitionNone`NoneOutput object definition for structured output
output_toolslist[ToolDefinition][]Output tools for the model request
allow_text_outputboolTrueWhether to allow text output from the model

Functions

tool_defs

Get a dictionary of tool definitions by name. Returns:
  • dict[str, ToolDefinition]: A dictionary mapping tool names to their definitions
I