Add reply to the routes (#4963)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-10-03 13:32:42 -04:00
committed by GitHub
parent 73e35c15ab
commit 5b8efb5b9a
5 changed files with 117 additions and 45 deletions
+55
View File
@@ -1206,6 +1206,35 @@
}
}
},
"/reply": {
"post": {
"tags": [
"super::routes::reply"
],
"operationId": "reply",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChatRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Streaming response initiated"
},
"424": {
"description": "Agent not initialized"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/schedule/create": {
"post": {
"tags": [
@@ -1845,6 +1874,32 @@
}
}
},
"ChatRequest": {
"type": "object",
"required": [
"messages",
"session_id"
],
"properties": {
"messages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message"
}
},
"recipe_name": {
"type": "string",
"nullable": true
},
"recipe_version": {
"type": "string",
"nullable": true
},
"session_id": {
"type": "string"
}
}
},
"ConfigKey": {
"type": "object",
"description": "Configuration key metadata for provider setup",