Create an agent
Create an agent once, then reuse its saved behavior across multiple runs. The example below stores instructions and aweb_search tool so later runs can call external tools when needed.
agent object with a stable id such as agt_....
See the Create an agent API reference for the full schema.
List and retrieve agents
Use the collection endpoint to list saved agents for the current caller. Use the item endpoint when you already know the agent ID.Execute a saved agent
Run the agent by sending only the per-run input and optional metadata. The service combines this with the saved agent configuration and forwards the request into the Responses API throughmkllm-gateway.
- the persisted run ID
- the run status
gateway_response_idfrom the upstream Responses callgateway_response, which contains the stored assistant output and any tool activity
web_search, the persisted gateway_response will include the corresponding tool call entries.
See the Execute a saved agent API reference for the full run request and response schema.
Inspect run history
Use the runs collection to list prior executions for one agent. Use the run detail endpoint to retrieve one stored result again later.Update or delete an agent
UsePOST /api/v1/agents/{agent_id} to update stored configuration.
Use DELETE /api/v1/agents/{agent_id} to soft-delete the agent when it should no longer accept new runs.