Skip to content

Amend AIT-ST1/CT1 for client + channelName API#467

Open
zknill wants to merge 1 commit intoai-transport-featuresfrom
zak/ait-718/accept-realtime-client
Open

Amend AIT-ST1/CT1 for client + channelName API#467
zknill wants to merge 1 commit intoai-transport-featuresfrom
zak/ait-718/accept-realtime-client

Conversation

@zknill
Copy link
Copy Markdown

@zknill zknill commented May 6, 2026

Update the createAgentSession (AIT-ST1) and createClientSession (AIT-CT1) factory specs to reflect the new option shape: an Ably.Realtime client and a channelName instead of a pre-resolved Ably.RealtimeChannel. The session resolves the channel internally via client.channels.get(channelName).

Add sub-points AIT-ST1a and AIT-CT1a covering agent registration: on construction, both sessions must register the ai-transport-js identifier with the SDK version on the Realtime client's options.agents map for usage tracking. Registration is idempotent across sessions sharing a client. Specify that close() does not release the channel or close the client — the caller owns the client lifecycle.

Update the `createAgentSession` (AIT-ST1) and `createClientSession`
(AIT-CT1) factory specs to reflect the new option shape: an
`Ably.Realtime` client and a `channelName` instead of a pre-resolved
`Ably.RealtimeChannel`. The session resolves the channel internally
via `client.channels.get(channelName)`.

Add sub-points AIT-ST1a and AIT-CT1a covering agent registration:
on construction, both sessions must register the `ai-transport-js`
identifier with the SDK version on the Realtime client's
`options.agents` map for usage tracking. Registration is idempotent
across sessions sharing a client. Specify that `close()` does not
release the channel or close the client — the caller owns the
client lifecycle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant