Start an agent session
create_agent_sessionStart a session with an agent and send it a first prompt. The agent replies asynchronously: this returns once the prompt is queued, and the reply is read from GET /sessions/{session_id}/history/messages.
Instructions
Start a session with an agent and send it a first prompt. The agent replies asynchronously: this returns once the prompt is queued, and the reply is read from GET /sessions/{session_id}/history/messages. Without incidentId the session is the caller's own, so it needs an OAuth token and an API key gets 400. With incidentId it is the incident's, visible across the workspace, and an incident's open session takes the prompt instead of a new one starting. Needs a grant to run the agent, and to view the incident when incidentId is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effort | No | ||
| prompt | Yes | ||
| agentId | Yes | ||
| modelId | No | ||
| incidentId | No | ||
| pipelineEditorContext | No | ||
| X-Orchestra-Account-Id | No | Act on this account rather than the one the credential resolves to. Omit it to use the credential's own account. An API key is issued to a single account, so it may only name that account; an OAuth token may name any account its grant covers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||