POST /v1/messages — SSE streaming (Anthropic event shape) #10
Labels
No labels
area/auth
area/batches
area/count-tokens
area/docs
area/errors
area/infra
area/messages
area/models
area/plugin
area/server
area/sessions
area/streaming
area/transform
priority/p0
priority/p1
priority/p2
status/blocked
status/done
status/in-progress
status/in-review
status/needs-rescope
status/todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kalmiya/hermes-anthropic-api#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kanban ticket:
t_4048d742Board:
hermes-anthropic-apiTask t_4048d742: POST /v1/messages — SSE streaming (Anthropic event shape)
status: ready
assignee: -
workspace: scratch
max-retries: 2 (default)
created: 2026-08-03 16:53 by kalmiya
Body:
Anthropic Messages streaming via
stream: true.Event sequence (Anthropic):
message_start— full message envelope,type=message_startping— keepalivecontent_block_start— per content block (index,content_block)content_block_delta— incremental (delta.type=text_delta|input_json_delta|thinking_delta|signature_delta)content_block_stopmessage_delta—delta.stop_reason, delta.stop_sequence?, usage.output_tokensmessage_stopImplementation:
content_block_deltashape.indexcounter for concurrent content blocks (rare in Hermes but possible with extended thinking).message_startfirst, then stream deltas, thenmessage_deltawithusage, thenmessage_stop.event: <name>\ndata: <json>\n\n(Anthropic's SSE format uses baredata:with the event name on the precedingevent:line — distinct from OpenAI's[DONE]).event: error\ndata: {...}and close.Events (1):
[2026-08-03 16:53] created {'assignee': None, 'status': 'ready', 'parents': [], 'tenant': None, 'workspace_kind': 'scratch', 'workspace_path': None, 'branch_name': None, 'project_id': None, 'skills': None, 'goal_mode': None, 'model_override': None, 'provider_override': None}