Enabling Tools
Streaming Metadata
Each tool streams structured metadata under a predictable key:| Tool | Metadata key |
|---|---|
| Web search | metadata['web_search'] |
| File search | metadata['file_search'] |
| Image generation | metadata['image_generation'] |
| Code interpreter | metadata['code_interpreter'] |
ChatResult during streaming, which you can use
to show live progress, log it, or feed it into analytics.
Message Content
Final deliverables (images, generated files, synthesized summaries) arrive as normal message parts so you can handle them with the usualChatMessage APIs.
Configuration Blocks
Each tool exposes an optional configuration object:Pages
Examples
Related Topics
- Thinking Metadata – Combine reasoning output with tool progress
- Tool Calling – Define your own local tools

