Skip to main content
Use responses(...) for new text-generation and tool-calling work.

Read the output text

Responses API output is an array. For a simple text result:
Keep the full body when your request can return multiple messages, reasoning items, tool calls, or provider metadata.

Send function tools

For a local tool loop with approvals and resumable state, use the Rust Agent SDK.
Last modified on July 26, 2026