v1

latestOpenAPI 3.1.02026-08-04156223229.6 KB
agent-loop

Update Turn

Single completion call — updates turn with all results at once.

Dual-auth (see require_turn_access): a per-turn agent-svc JWT bound to this turn_id is the agent-service path; Stytch session is the user path. Both routes resolve to actor.user_id for cursor advances and downstream attribution.

patch/agent-loop/turns/{turn_id}

Path parameters

turn_idstring required

Headers

authorizationstring nullable

Request body

statusstring nullable
assistant_textstring nullable
{"stackTrail":"components:schemas:UpdateTurnRequest:properties:tool_calls:anyOf","oasType":"schema","type":"unknown","title":"Tool Calls","nullable":true}
{"stackTrail":"components:schemas:UpdateTurnRequest:properties:message_deltas:anyOf","oasType":"schema","type":"unknown","title":"Message Deltas","nullable":true}
{"stackTrail":"components:schemas:UpdateTurnRequest:properties:usage:anyOf","oasType":"schema","type":"unknown","title":"Usage","nullable":true}
errorstring nullable

Response

Successful Response

object required