Skip to content

feat(bb-agent): compute-agnostic client streaming API (createChat) - #338

Draft
pjkroker wants to merge 1 commit into
mainfrom
refactor/bb-agent-api-redesign
Draft

feat(bb-agent): compute-agnostic client streaming API (createChat)#338
pjkroker wants to merge 1 commit into
mainfrom
refactor/bb-agent-api-redesign

Conversation

@pjkroker

@pjkroker pjkroker commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Scope — client-side only

Client-side only. Adds createChat + a ChatTransport seam that hides the
runtime from the frontend, over the existing Lambda + Realtime backend
(stream/getChannel/resume unchanged).

- createChat({ transport, api }): one-call sendMessage() (fuses subscribe+run,
  no subscribe-before-send race); run()/subscribe() primitives for fan-out,
  observer-only, decoupled produce/consume.
- realtimeTransport(): the current runtime's ChatTransport impl, bridging the
  callback Realtime channel into an AsyncIterable and mapping run() onto the
  existing stream/resume RPCs.
- useChat deprecated (kept, non-breaking); test app migrated to createChat.

Backend runtime pluggability (ExecutionTarget) is a separate, later PR.

Design: Chorus doc 106a (tdC7sED3ryoh).
@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f04164e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@aws-blocks/bb-agent Minor
@aws-blocks/blocks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pjkroker pjkroker changed the title feat(bb-agent): compute-agnostic client streaming API (createChat) — client-only feat(bb-agent): compute-agnostic client streaming API (createChat) Aug 11, 2026
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