Skip to content

Python: Channels #6265

Open
7 of 9 issues completed
Open

Description

Tracking issue for the Python hosting protocol-helper work (formerly tracked as “channels”).

The accepted direction is helper-first: protocol packages convert protocol-native input/output into Agent Framework run values and protocol-native responses/events. App code owns the web framework routes, native SDK clients, authN/authZ, commands, delivery, deployment shape, and session/checkpoint storage policy.

The earlier host/channel registry model is no longer the v1 boundary. Issue titles that still say “channel” should be read as “protocol helper package + samples” until each slice is renamed or rewritten.

Current Sprint 5 work

Merged / retained prior work

Remaining protocol-helper slices

Split rules

  • Each protocol slice should provide only the Agent Framework-specific seam: helpers such as <protocol>_to_run(...), <protocol>_from_run(...), <protocol>_from_streaming_run(...), <protocol>_session_id(...), and command/media helpers when useful.
  • App/web-framework code owns routes, auth, native SDK clients, webhook registration, background work, deployment shape, and response delivery.
  • Samples ship with the protocol helper package they use, or with the last not-yet-landed helper package when a sample spans multiple protocols.
  • New non-core package tests must use tests/<unique_name>/ and must not include tests/__init__.py.
  • New packages should follow the current typing setup: Pyright for source, no package-local source mypy task.
  • Do not reintroduce the old host/channel registry, route aggregation, linking, multicast, cross-channel delivery, or durable delivery implementation into the v1 helper surface.
  • If an older issue or PR references feature/python-hosting or the old host/channel API, reconcile it against the helper-first model before implementation.

Follow-up / proposed work

Tracked by ADR-0028 rather than v1 implementation PRs:

  • Identity linking and unlink flows
  • Multicast and cross-channel delivery
  • Active-channel routing
  • Background continuations and durable delivery
  • Retry/replay and delivery observability
  • Payload serialization for durable cross-channel delivery

Sub-issues

Sub-issues

7 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. added
    python
    on Jun 2, 2026
  2. eavanvalkenburg commented on Jun 24, 2026

    @eavanvalkenburg
    MemberAuthor

    In-flight channel PRs (Sprint 4)

    Three channel implementations are now open for review, all based on the merged hosting core + Responses channel:

    Channel PR Status
    Telegram #6698 In review
    A2A #6699 In review
    MCP #6700 In review

    Each PR includes:

    • Channel implementation with multimodal streaming (update.contents based)
    • Default _strip_options_hook so callers cannot inject model options without an explicit override
    • Tests and typing checks
    • A local_<channel>/ sample with server + client script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

python

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions