Other Tools: native

This document covers provider-native tools like web search or code execution.

native Tools

Native tools allow you to access functionality that is built directly into the LLM provider’s backend, such as web search or a code interpreter environment for data analysis.

Support for native tools varies by provider.

Configuration

You enable native tools by specifying their type.

tools:
  - native: search # Enable the provider's built-in web search.
  - native: code   # Enable the provider's built-in code interpreter.

Provider Support

  • Gemini: Supports both search and code. Note that the Gemini API has a limitation where you can only use one native tool at a time, and it cannot be combined with other (non-native) tools.
  • Anthropic: Supports search only.
  • OpenAI: Supports both search and code via the openai provider (not the legacy openai/chat provider).
  • Codex: Supports both search and code via the codex provider (ChatGPT subscription, Codex backend).