For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
      • Analytics
      • APIKeys
      • Byok
      • Chat
        • ResponsesRequestToolUnion
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • Go SDK
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Supported Types
  • components.ResponsesRequestToolFunction
  • components.PreviewWebSearchServerTool
  • components.Preview20250311WebSearchServerTool
  • components.LegacyWebSearchServerTool
  • components.WebSearchServerTool
  • components.FileSearchServerTool
  • components.ComputerUseServerTool
  • components.CodeInterpreterServerTool
  • components.McpServerTool
  • components.ImageGenerationServerTool
  • components.CodexLocalShellTool
  • components.ShellServerTool
  • components.ApplyPatchServerTool
  • components.CustomTool
  • components.DatetimeServerTool
  • components.FusionServerToolOpenRouter
  • components.ImageGenerationServerToolOpenRouter
  • components.ChatSearchModelsServerTool
  • components.WebFetchServerTool
  • components.WebSearchServerToolOpenRouter
  • components.ApplyPatchServerToolOpenRouter
Python SDKAPI ReferenceComponents

ResponsesRequestToolUnion - Python SDK

ResponsesRequestToolUnion method reference
Was this page helpful?
Previous

Credits - Python SDK

Credits method reference
Next
Built with

The Python SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

components.ResponsesRequestToolFunction

1value: components.ResponsesRequestToolFunction = /* values here */

components.PreviewWebSearchServerTool

1value: components.PreviewWebSearchServerTool = /* values here */

components.Preview20250311WebSearchServerTool

1value: components.Preview20250311WebSearchServerTool = /* values here */

components.LegacyWebSearchServerTool

1value: components.LegacyWebSearchServerTool = /* values here */

components.WebSearchServerTool

1value: components.WebSearchServerTool = /* values here */

components.FileSearchServerTool

1value: components.FileSearchServerTool = /* values here */

components.ComputerUseServerTool

1value: components.ComputerUseServerTool = /* values here */

components.CodeInterpreterServerTool

1value: components.CodeInterpreterServerTool = /* values here */

components.McpServerTool

1value: components.McpServerTool = /* values here */

components.ImageGenerationServerTool

1value: components.ImageGenerationServerTool = /* values here */

components.CodexLocalShellTool

1value: components.CodexLocalShellTool = /* values here */

components.ShellServerTool

1value: components.ShellServerTool = /* values here */

components.ApplyPatchServerTool

1value: components.ApplyPatchServerTool = /* values here */

components.CustomTool

1value: components.CustomTool = /* values here */

components.DatetimeServerTool

1value: components.DatetimeServerTool = /* values here */

components.FusionServerToolOpenRouter

1value: components.FusionServerToolOpenRouter = /* values here */

components.ImageGenerationServerToolOpenRouter

1value: components.ImageGenerationServerToolOpenRouter = /* values here */

components.ChatSearchModelsServerTool

1value: components.ChatSearchModelsServerTool = /* values here */

components.WebFetchServerTool

1value: components.WebFetchServerTool = /* values here */

components.WebSearchServerToolOpenRouter

1value: components.WebSearchServerToolOpenRouter = /* values here */

components.ApplyPatchServerToolOpenRouter

1value: components.ApplyPatchServerToolOpenRouter = /* values here */