diff --git a/docs/_static/llama-stack-spec.html b/docs/_static/llama-stack-spec.html
index 2b6e1d11c..829c90fc4 100644
--- a/docs/_static/llama-stack-spec.html
+++ b/docs/_static/llama-stack-spec.html
@@ -2558,6 +2558,67 @@
}
}
},
+ "/v1/agents/{agent_id}/session/{session_id}/turn/{turn_id}/submit_tool_response_messages": {
+ "post": {
+ "responses": {
+ "200": {
+ "description": "A single turn in an interaction with an Agentic System. **OR** streamed agent turn completion response.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Turn"
+ }
+ },
+ "text/event-stream": {
+ "schema": {
+ "$ref": "#/components/schemas/AgentTurnResponseStreamChunk"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Agents"
+ ],
+ "description": "",
+ "parameters": [
+ {
+ "name": "agent_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "session_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "turn_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SubmitToolResponseMessagesRequest"
+ }
+ }
+ },
+ "required": true
+ }
+ }
+ },
"/v1/post-training/supervised-fine-tune": {
"post": {
"responses": {
@@ -5231,6 +5292,9 @@
},
{
"$ref": "#/components/schemas/AgentTurnResponseTurnCompletePayload"
+ },
+ {
+ "$ref": "#/components/schemas/AgentTurnResponseTurnPendingPayload"
}
],
"discriminator": {
@@ -5240,7 +5304,8 @@
"step_progress": "#/components/schemas/AgentTurnResponseStepProgressPayload",
"step_complete": "#/components/schemas/AgentTurnResponseStepCompletePayload",
"turn_start": "#/components/schemas/AgentTurnResponseTurnStartPayload",
- "turn_complete": "#/components/schemas/AgentTurnResponseTurnCompletePayload"
+ "turn_complete": "#/components/schemas/AgentTurnResponseTurnCompletePayload",
+ "turn_pending": "#/components/schemas/AgentTurnResponseTurnPendingPayload"
}
}
},
@@ -5422,6 +5487,25 @@
],
"title": "AgentTurnResponseTurnCompletePayload"
},
+ "AgentTurnResponseTurnPendingPayload": {
+ "type": "object",
+ "properties": {
+ "event_type": {
+ "type": "string",
+ "const": "turn_pending",
+ "default": "turn_pending"
+ },
+ "turn": {
+ "$ref": "#/components/schemas/Turn"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "event_type",
+ "turn"
+ ],
+ "title": "AgentTurnResponseTurnPendingPayload"
+ },
"AgentTurnResponseTurnStartPayload": {
"type": "object",
"properties": {
@@ -8239,6 +8323,22 @@
],
"title": "ScoreBatchResponse"
},
+ "SubmitToolResponseMessagesRequest": {
+ "type": "object",
+ "properties": {
+ "tool_response_messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ToolResponseMessage"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "tool_response_messages"
+ ],
+ "title": "SubmitToolResponseMessagesRequest"
+ },
"AlgorithmConfig": {
"oneOf": [
{
diff --git a/docs/_static/llama-stack-spec.yaml b/docs/_static/llama-stack-spec.yaml
index 99300fedf..4dfaa284a 100644
--- a/docs/_static/llama-stack-spec.yaml
+++ b/docs/_static/llama-stack-spec.yaml
@@ -1543,6 +1543,45 @@ paths:
schema:
$ref: '#/components/schemas/ScoreBatchRequest'
required: true
+ /v1/agents/{agent_id}/session/{session_id}/turn/{turn_id}/submit_tool_response_messages:
+ post:
+ responses:
+ '200':
+ description: >-
+ A single turn in an interaction with an Agentic System. **OR** streamed
+ agent turn completion response.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Turn'
+ text/event-stream:
+ schema:
+ $ref: '#/components/schemas/AgentTurnResponseStreamChunk'
+ tags:
+ - Agents
+ description: ''
+ parameters:
+ - name: agent_id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: session_id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: turn_id
+ in: path
+ required: true
+ schema:
+ type: string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SubmitToolResponseMessagesRequest'
+ required: true
/v1/post-training/supervised-fine-tune:
post:
responses:
@@ -3366,6 +3405,7 @@ components:
- $ref: '#/components/schemas/AgentTurnResponseStepCompletePayload'
- $ref: '#/components/schemas/AgentTurnResponseTurnStartPayload'
- $ref: '#/components/schemas/AgentTurnResponseTurnCompletePayload'
+ - $ref: '#/components/schemas/AgentTurnResponseTurnPendingPayload'
discriminator:
propertyName: event_type
mapping:
@@ -3374,6 +3414,7 @@ components:
step_complete: '#/components/schemas/AgentTurnResponseStepCompletePayload'
turn_start: '#/components/schemas/AgentTurnResponseTurnStartPayload'
turn_complete: '#/components/schemas/AgentTurnResponseTurnCompletePayload'
+ turn_pending: '#/components/schemas/AgentTurnResponseTurnPendingPayload'
AgentTurnResponseStepCompletePayload:
type: object
properties:
@@ -3494,6 +3535,20 @@ components:
- event_type
- turn
title: AgentTurnResponseTurnCompletePayload
+ AgentTurnResponseTurnPendingPayload:
+ type: object
+ properties:
+ event_type:
+ type: string
+ const: turn_pending
+ default: turn_pending
+ turn:
+ $ref: '#/components/schemas/Turn'
+ additionalProperties: false
+ required:
+ - event_type
+ - turn
+ title: AgentTurnResponseTurnPendingPayload
AgentTurnResponseTurnStartPayload:
type: object
properties:
@@ -5273,6 +5328,17 @@ components:
required:
- results
title: ScoreBatchResponse
+ SubmitToolResponseMessagesRequest:
+ type: object
+ properties:
+ tool_response_messages:
+ type: array
+ items:
+ $ref: '#/components/schemas/ToolResponseMessage'
+ additionalProperties: false
+ required:
+ - tool_response_messages
+ title: SubmitToolResponseMessagesRequest
AlgorithmConfig:
oneOf:
- $ref: '#/components/schemas/LoraFinetuningConfig'