Execute agent
Executes an agent with optional content.
Body
Request parameters for executing an agent
Optional - the backend will automatically get or create an agent.
Optional content array. If provided, this will be used as the initial message. Each item must have a type field with one of the following values:
text— Plain text content. Requires atextstring field.file— A previously uploaded file. Requires anidstring field with the file external ID.skill— A skill to inject into the prompt. Requires anidstring field with the agent_fs_node external ID.json— Structured key-value data. Requires adataobject field. Rendered as a table in the UI and persisted as input.json.
- Option 1
- Option 2
- Option 3
- Option 4
When true, request a background archive of the thread session files after the execution reaches a terminal state.
Optional JSON Schema for per-execution summary extraction. Overrides the agent-level result schema for this execution only.
Kaizen version tier to use for this execution. Determines the default model based on your organization’s model alias configuration for the selected tier.
Full— Uses the model configured for Kaizen Full (typically a frontier model).Lite— Uses the model configured for Kaizen Lite (typically a smaller, faster model).
When not provided, the organization’s default Kaizen version is used.
Full, Lite