Installation
Quick Start
Usage
Get Tools
Complete Example
Tool Format
The OpenAI provider wraps tools in this format:Streaming
Use OpenAI’s streaming API with tools:Parallel Tool Calls
OpenAI supports parallel tool execution:Strict Mode
Use OpenAI’s strict mode for structured outputs:Best Practices
- Tool Selection: Limit tools to only what’s needed
- Error Handling: Wrap tool execution in try-catch
- Rate Limits: Handle OpenAI rate limits
- Token Usage: Monitor token consumption
- Timeouts: Set appropriate timeouts
TypeScript Types
Next Steps
OpenAI Agents
Use OpenAI Agents SDK (Swarm)
Tools API
Learn about tools
Connected Accounts
Set up user authentication
Examples
View example code