Run the provided Pi harness
/v1/sessions/{id}/agentRun one fresh Pi conversation against this session. Omitting provider and model uses the configured service default; supply both to override it. The service must have credentials for the selected provider. The request reserves the session until it finishes. Streams AgentEvent records as NDJSON. Agent history and events are not persisted for replay. Disconnect requests cancellation; requests have a 15-minute deadline.
Authorization
bearerAuth Use the owner-scoped product API key provided by the service operator.
In: header
Path Parameters
Session ID returned by open or list.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Uses the service default model when provider and model are omitted. Supply both fields together to override the default.
Uses the service default model when provider and model are omitted. Supply both fields together to override the default.
Response Body
application/x-ndjson
application/json
curl -X POST "https://assemble-vms-api.fly.dev/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent" \ -H "Authorization: Bearer ${ASSEMBLE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "message": "Write a short project plan to plan.md, then read it back." }'"{\"type\":\"text\",\"delta\":\"I will inspect the session.\"}\n{\"type\":\"tool_start\",\"tool\":\"read\"}\n{\"type\":\"tool_end\",\"tool\":\"read\",\"isError\":false}\n{\"type\":\"done\"}\n"