Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 19.4 KB

File metadata and controls

15 lines (10 loc) · 19.4 KB

PlatformAgentRunCreateRequest

Request to run an agent. A request MUST supply either messages (a non-empty conversation) or input (for input-form triggered agents).

Fields

Field Type Required Description
input Map<String, Object> ➖ Input fields for an input-form triggered agent.
messages List<PlatformMessageInput> ➖ Messages to pass to the agent. When provided, the array MUST contain at least one message and each message MUST specify a valid role and non-empty content.
metadata Map<String, Object> ➖ Metadata to pass to the agent.
stream Optional<Boolean> ➖ Whether to stream the run response as server-sent events. Not supported in DURABLE mode.
executionMode Optional<ExecutionMode> ➖ REQUEST_BOUND preserves the existing wait/stream behavior. DURABLE starts a fresh, persisted execution with a 30-minute execution timeout and returns immediately. DURABLE requires stream to be false or omitted and does not accept metadata.chat_session_id. It does not bypass tool approval requirements or provide automatic QE-crash resumption. Expiry is read-triggered: the next GET of the run marks an active turn FAILED if more than 40 minutes have passed since the turn was accepted. There is no periodic sweep, so the stored run can remain RUNNING until it is read. Expiry never replays execution or expires approval-paused runs, and failure does not prove that external tool work has stopped.