fix: Add approval messages to runs.stream SSE schema (align with agents.create_stream) (#4451)

* fix: patch error on HITL tests

* Revert uv.lock to match main

* fix: IDK why uv lock keeps changing???
This commit is contained in:
Charles Packer
2025-09-05 21:44:26 -07:00
committed by GitHub
parent af302e8ac8
commit 326f9a5049
2 changed files with 2615 additions and 2591 deletions

View File

@@ -255,7 +255,26 @@ async def delete_run(
200: {
"description": "Successful response",
"content": {
"text/event-stream": {"description": "Server-Sent Events stream"},
# Align streaming schema with agents.create_stream so SDKs accept approval messages
"text/event-stream": {
"description": "Server-Sent Events stream",
"schema": {
"oneOf": [
{"$ref": "#/components/schemas/SystemMessage"},
{"$ref": "#/components/schemas/UserMessage"},
{"$ref": "#/components/schemas/ReasoningMessage"},
{"$ref": "#/components/schemas/HiddenReasoningMessage"},
{"$ref": "#/components/schemas/ToolCallMessage"},
{"$ref": "#/components/schemas/ToolReturnMessage"},
{"$ref": "#/components/schemas/AssistantMessage"},
{"$ref": "#/components/schemas/ApprovalRequestMessage"},
{"$ref": "#/components/schemas/ApprovalResponseMessage"},
{"$ref": "#/components/schemas/LettaPing"},
{"$ref": "#/components/schemas/LettaStopReason"},
{"$ref": "#/components/schemas/LettaUsageStatistics"},
]
},
},
},
}
},

5185
uv.lock generated

File diff suppressed because it is too large Load Diff