Agents/AgentResponse.php

client · src/Responses/Agents/AgentResponse.php · php · MIT
ai

Maps OpenAI Agent API responses to typed PHP objects for easy access.

// Source: https://github.com/openai-php/client | License: MIT | Copyright Nuno Maduro <enunomaduro@gmail.com>
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace OpenAI\Responses\Agents;

use OpenAI\Contracts\ResponseContract;
use OpenAI\Contracts\ResponseHasMetaInformationContract;
use OpenAI\Responses\Agents\Objects\MultiAgent;
use OpenAI\Responses\Agents\Objects\Reasoning;
use OpenAI\Responses\Agents\Objects\Text;
use OpenAI\Responses\Concerns\ArrayAccessible;
use OpenAI\Responses\Concerns\HasMetaInformation;
use OpenAI\Responses\Meta\MetaInformation;
use OpenAI\Testing\Responses\Concerns\Fakeable;

/**
 * @phpstan-import-type MultiAgentType from MultiAgent
 * @phpstan-import-type ReasoningType from Reasoning
 * @phpstan-import-ty

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key