TurnInfo
Turn position within an agentic generation run
Usage profiles
| Usage | Fields and validation |
|---|---|
| In requests | View fields |
| In responses | View fields |
| In webhook payloads | View fields |
In requests
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
currentTurn | integer (int32) | Optional | Current turn position within the generation run. Minimum: -2147483648. Maximum: 2147483647. |
maxTurns | integer (int32) | Optional | Maximum turns configured for the generation run. Minimum: -2147483648. Maximum: 2147483647. |
In responses
API JSON uses JSON field names (camelCase).
| Field | Type | Presence | Meaning |
|---|---|---|---|
currentTurn | integer (int32) | Optional | Current turn position within the generation run. Minimum: -2147483648. Maximum: 2147483647. |
maxTurns | integer (int32) | Optional | Maximum turns configured for the generation run. Minimum: -2147483648. Maximum: 2147483647. |
In webhook payloads
Webhook JSON uses protobuf field names (snake_case).
| Field | Type | Presence | Meaning |
|---|---|---|---|
current_turn | integer (int32) | Optional | Current turn position within the generation run. Minimum: -2147483648. Maximum: 2147483647. |
max_turns | integer (int32) | Optional | Maximum turns configured for the generation run. Minimum: -2147483648. Maximum: 2147483647. |
Where used
| Reference | Relationship |
|---|---|
| Append a message without generating | POST /api/v1/llm/append-message |
| Send a message to a conversation | POST /api/v1/llm/send-message |
| Send a message and wait for the result | POST /api/v1/llm/send-message-sync |
| Withdraw your rating on a message | POST /api/v1/llm/delete-message-rating |
| Get full conversation state | POST /api/v1/llm/conversation-state |
| Rate an assistant message | POST /api/v1/llm/rate-message |
| Submit client-side tool results and wait for the next segment | POST /api/v1/llm/submit-client-tool-results-sync |
| llm.message_published | Webhook JSON uses protobuf field names (snake_case). |
| GenerationContext | Nested in model |
| GenerationContext | Nested in model |
| GenerationContext | Nested in model |
Download the public reference contract.
Document: DOC-API-MODEL-turn-info.