Agents

Create an agent environment file

Copies inline bytes or a Files API file into a connected execution environment. See environment files.

post/agents/environments/{environment_id}/files

Path parameters

environment_idstring required

The ID of the environment.

Request body

OR

Response

The created live environment file.

object'agent.environment.file' required

The object type. Always agent.environment.file.

environment_idstring required

The ID of the environment containing this file.

pathstring required

The absolute file path inside the environment's workspace.

size_bytesinteger required

The file size in bytes.

Changes