Interface for managing files in OpenAI agent environments
// 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\Environments\Files\AgentEnvironmentFileListResponse;
use OpenAI\Responses\Agents\Environments\Files\AgentEnvironmentFileResponse;
interface AgentEnvironmentFilesContract
{
/**
* Write a file into a connected agent environment.
*
* @see https://developers.openai.com/api/reference/resources/beta/subresources/agents/subresources/environments/subresources/files/methods/create
*
* @param array<string, mixed> $parameters
*/
public function create(string $environmentId, array $paramete
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key