Base class for OpenAI Responses API provider tools.

Hierarchy (view full)

Constructors

Properties

[PROVIDER_TOOL_SYMBOL]: true
[TOOL_SYMBOL]: true
id: string

Stable identifier used to key the tool inside a ToolContext. For function tools this mirrors name; for provider tools this is the provider tool id.

type: "provider"

Methods

  • Convert this provider tool to the OpenAI Responses API tool configuration.

    Returns Record<string, unknown>