Expand description
Tool and function call types for xAI API.
Structs§
- Code
Interpreter Call - The output of a code interpreter tool call.
- Custom
Tool Call - The output of a custom tool call.
- File
Search Call - The output of a file search tool call.
- File
Search Result - A file search result.
- Function
- Function call details.
- Function
Choice - Function name for tool choice.
- Function
Definition - Definition of the tool call made available to the model.
- Function
Tool Call - A tool call to run a function (for Responses API).
- Function
Tool Call Output - The output of a function tool call.
- McpCall
- The output of a MCP tool call.
- Output
Refusal - Refusal output from the model.
- Output
Text - Text output from the model.
- Tool
Call - A tool call made by the model.
- WebSearch
Call - The output of a web search tool call.
- WebSearch
Filters - Web search filters.
- WebSearch
Options - Web search options.
- WebSearch
Source - Web search source.
Enums§
- Code
Interpreter Output - Output of a code interpreter tool call.
- Model
Tool - Definition of one tool that the model can call (for Responses API).
- Model
Tool Choice - Parameter to control how model chooses the tools (for Responses API).
- Output
Message Content - Output message content.
- Tool
- Definition of one tool that the model can call.
- Tool
Choice - Parameter to control how model chooses the tools.
- WebSearch
Action - Web search action.