Skip to content

feat(OpenAI): add Agents API - #817

Open
heyzainali wants to merge 1 commit into
openai-php:mainfrom
heyzainali:feat/agents-resource
Open

heyzainali wants to merge 1 commit into
openai-php:mainfrom
heyzainali:feat/agents-resource

Conversation

@heyzainali

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

Adds the core endpoints of the Agents API (beta): create, list, retrieve, update and delete. Every request sends the OpenAI-Beta: agents=v1 header, the same way the Assistants resources do. Sessions, environments and vaults will follow in separate PRs.

The agent's multi_agent, reasoning and text fields are small response objects. tools stays a typed array with a docblock shape, because the agent tool shapes differ from the existing Responses tool classes (for example, MCP tools use a transport object and web search has a mode).

All five endpoints were tested against the live API.

Context: OpenAI Docs

Related:

Related: #809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant