Skip to main content
Add standard tools and tool_choice fields to a Chat Completions request:
If the selected model calls a tool, its assistant message contains tool_calls. Run the tool, append its result as a tool message, and send the full message history again.