Expand description
OpenAI Function Calling Integration
This module provides functionality to convert tool definitions into OpenAI’s ChatCompletionTool format and parse function call responses from the SDK.
Structs§
- Function
Call - Represents a parsed tool call from OpenAI’s function calling response
Functions§
- parse_
tool_ call_ from_ message - Parses a tool call from OpenAI’s ChatCompletionResponseMessage Expects the tool call to be in the message’s tool_calls array
- tool_
to_ openai_ function - Converts a tool definition into OpenAI ChatCompletionTool format