Run an agent with configuration
Run an agent with inline configuration or existing agent reference. Supports A2A messages, memory context, tool execution, and model fallback.
Authorizations
Body
A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
1^[A-Za-z][A-Za-z0-9]*([._-][A-Za-z0-9]+)*$A model ID string (e.g., openai/gpt-5.6-sol or anthropic/claude-sonnet-5). The agent can be run with a wide range of models with different capabilities, performance characteristics, and price points. Only models that support tool calling (function_calling) can be used to run agents. See supported models documentation for the complete list of available models.
Entity storage path.
With workspace-level API keys, use the format project/folder/subfolder/.... The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: Default Project/agents.
With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: agents. For backward compatibility, a leading project name is ignored when it matches the scoped project.
"Default Project"
Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
- string
- Fallback Model Configuration · object
A fallback model ID string (e.g., openai/gpt-4o-mini). Will be used if the primary model request fails. Must support tool calling.
Response
Agent execution initiated successfully. Returns task details including the task ID, execution status, and agent response. The task ID can be used to track execution progress and retrieve results.
Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.