Module tools

Module tools 

Source
Expand description

Tool and function call types for xAI API.

Structs§

CodeInterpreterCall
The output of a code interpreter tool call.
CustomToolCall
The output of a custom tool call.
FileSearchCall
The output of a file search tool call.
FileSearchResult
A file search result.
Function
Function call details.
FunctionChoice
Function name for tool choice.
FunctionDefinition
Definition of the tool call made available to the model.
FunctionToolCall
A tool call to run a function (for Responses API).
FunctionToolCallOutput
The output of a function tool call.
McpCall
The output of a MCP tool call.
OutputRefusal
Refusal output from the model.
OutputText
Text output from the model.
ToolCall
A tool call made by the model.
WebSearchCall
The output of a web search tool call.
WebSearchFilters
Web search filters.
WebSearchOptions
Web search options.
WebSearchSource
Web search source.

Enums§

CodeInterpreterOutput
Output of a code interpreter tool call.
ModelTool
Definition of one tool that the model can call (for Responses API).
ModelToolChoice
Parameter to control how model chooses the tools (for Responses API).
OutputMessageContent
Output message content.
Tool
Definition of one tool that the model can call.
ToolChoice
Parameter to control how model chooses the tools.
WebSearchAction
Web search action.