Skip to content

Docs/integrator notes - #25

Open
aggarmoksh wants to merge 3 commits into
bee-computer:mainfrom
aggarmoksh:docs/integrator-notes
Open

aggarmoksh wants to merge 3 commits into
bee-computer:mainfrom
aggarmoksh:docs/integrator-notes

Conversation

@aggarmoksh

Copy link
Copy Markdown

Summary

Two README changes, docs only, no code changes. Both were checked against @beeai/cli@0.8.0 (run with npx -y @beeai/cli@0.8.0, Windows 10.0.26300.9711).

  1. new-utterance payload. The README example showed utterance.text and utterance.speaker. Live events carry id, sample_id, start, end, text and spoken_at, and no speaker. The example now matches, and a sentence notes that the pretty and --agent formats therefore show the speaker as unknown. No formatter change is proposed here.
  2. New "Notes for integrators" section after "Stream Events", with two notes: the Content-Type needed for writes through bee proxy, and the line-size note for bee stream --json.

How each was verified

  • new-utterance payload.
    • stream --types new-utterance --json, with one sentence spoken near the Watch. Four events arrived.
    • Key structure of every event: type: str, conversation_uuid: str, utterance: {id: int, sample_id: str, start: float, end: float, text: str, spoken_at: str}. spoken_at is an ISO 8601 UTC string with milliseconds.
    • stream --types new-utterance --agent, with another sentence. The printed line is Event new-utterance: [unknown] "..." conv=....
    • This matches the source: sources/commands/stream/index.ts prints utterance.speaker ?? "unknown", and --json prints event.data unchanged.
  • Content-Type.
    • POST /v1/todos through bee proxy --port 8788 with Content-Type: application/json returned 415 (FST_ERR_CTP_INVALID_MEDIA_TYPE, "Unsupported Media Type"). Three tries, including --data-binary; same result each time.
    • With Content-Type: application/json; charset=utf-8, the same POST returned 200, and PUT /v1/todos/<id> returned 200.
    • All test todos were deleted afterwards and confirmed gone.
  • Long lines. A long-running Python consumer using asyncio's default 64 KiB reader limit raised ValueError: Separator is not found, and chunk exceed the limit. The event type and size are not known. The note advises raising the limit and does not claim a specific event.

Observation, not in the docs: todo-updated

With CLI 0.8.0, a todo created and completed through the REST API did not produce todo-created or todo-updated events on the stream. Only todo-deleted arrived.

Repro:

  1. Start the proxy: npx -y @beeai/cli@0.8.0 proxy --port 8788
  2. In another shell, start the stream (a heartbeat prints first): npx -y @beeai/cli@0.8.0 stream --types todo-created,todo-updated,todo-deleted --json
  3. Create a todo with no alarm: curl -X POST http://127.0.0.1:8788/v1/todos -H 'Content-Type: application/json; charset=utf-8' -d '{"text":"test"}'
  4. Mark it complete: curl -X PUT http://127.0.0.1:8788/v1/todos/<id> -H 'Content-Type: application/json; charset=utf-8' -d '{"completed":true}'
  5. Wait 60 seconds and watch the stream, then DELETE /v1/todos/<id>.

Result: nothing but the heartbeat after the create and the complete. About 20 seconds after the DELETE, a todo-deleted event arrived. Single run, n=1. The README describes todo-updated as "same payload as todo-created", so this may be worth a look.

Related

The socket-directory fix lives in a separate PR (fix/proxy-socket-dir), so this PR no longer carries a socket note.

Context

This came out of building a project for the Amazon Build, Ship, Shape hackathon (Bee track).

aggarmoksh and others added 3 commits October 18, 2026 19:45
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…otes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant