Resources/AgentsContract.php

client · src/Contracts/Resources/AgentsContract.php · php · MIT
ai

Defines the contract for managing OpenAI agents, allowing developers to perform CRUD operations and manage agent environments and sessions.

// 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\Contracts\Resources;

use OpenAI\Responses\Agents\AgentDeleteResponse;
use OpenAI\Responses\Agents\AgentListResponse;
use OpenAI\Responses\Agents\AgentResponse;

interface AgentsContract
{
    /**
     * Create a reusable agent.
     *
     * @see https://developers.openai.com/api/reference/resources/beta/subresources/agents/methods/create
     *
     * @param  array<string, mixed>  $parameters
     */
    public function create(array $parameters): AgentResponse;

    /**
     * List the reusable agents in the current project.
     *
     * @see https://developers.ope

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

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

Get a free API key