v1
protected
agent-tasks
Create Task For Agent With Stream
Changed onCreate and execute a task for the specified agent with real-time SSE stream.
post/v1/workspaces/{workspace}/agents/{agent_id}/tasks/
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
agent_idstring uuid required
workspacestring required
Slug of the workspace the request acts in
Query parameters
followboolean
Keep the stream open through the follow-up window (up to 30 minutes) and relay follow-up turns. By default the stream ends at the turn's terminal event (task.completed, task.failed, task.cancelled); read follow-ups from GET .../tasks/{task_id}/events/stream.
Request body
Response
Successful Response
unknown required
Changes
- warning
removed the request property
- warning
- info
added the new optional request property
- info