Start one interactive agent-kernel turn
Drives ToolPiper's native AgentLoopKernel for one turn on a session (creating the session when session_id is absent). Provider-first: the body carries NO model name — the route resolves to a configuration through a three-layer ladder, the caller's optional endpoint_config_id, then the authenticated token's endpoint-config binding, then the local active model. Returns immediately; the turn's events (token deltas, tool-call proposals, tool results, cost frames, terminal turn-ended marker) ride GET /v1/agent/stream.
A session belongs to the client that opened it. Continuing, cancelling, answering, streaming or reading one another client opened is refused with 403 naming the owning client; the person at the Mac is always admitted. A conversation saved before sessions recorded their owner is open to the person and to ToolPiper's web app, and the first of them to continue it becomes its owner.
Request
- Base URL: http://localhost:9998
- URL: http://localhost:9998/v1/agent/turn
- Auth: HTTP bearer
Request body
Response
Turn accepted and running
Changes
No recorded changes to this operation across all 1 revision of this API.