Skip to content

feat(examples): add A2A supervisor middleware - #5991

Draft
Harrison Chase (hwchase17) wants to merge 1 commit into
mainfrom
hwchase17/docs/a2a-supervisor-example
Draft

feat(examples): add A2A supervisor middleware#5991
Harrison Chase (hwchase17) wants to merge 1 commit into
mainfrom
hwchase17/docs/a2a-supervisor-example

Conversation

@hwchase17

Copy link
Copy Markdown
Contributor

Adds a runnable middleware example that lets Deep Agents or LangChain create_agent supervise remote agents over A2A.

The example provides generic discovery, delegation, task polling, and cancellation tools; supports direct Agent Cards/base URLs and pluggable registries; and documents A2A lifecycle and authentication choices. It includes human-approval guidance, strict URL/SSRF checks, bounded untrusted results, timeouts, resource cleanup, and network-free tests.

Verification:

  • uv run ruff check .
  • uv run ty check --extra-search-path ../../libs/deepagents middleware.py supervisor.py tests/test_middleware.py
  • uv run pytest -q tests (11 passed)
  • uv lock --check

Made by Open SWE

References

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

This non-docs PR adds new Markdown files.

  • examples/a2a-supervisor/README.md

Change the PR type to docs if it only contains documentation changes. Otherwise, review the new files and apply the acknowledgment label:

markdown-added: acknowledged

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file examples Example code or tutorials feature New feature/enhancement or request for one internal User is a member of the `langchain-ai` GitHub organization size: XL 1000+ LOC labels Aug 29, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​packaging@​26.399100100100100
Addedpypi/​ty@​0.0.75100100100100100
Addedpypi/​ruff@​0.16.5100100100100100
Addedpypi/​a2a-sdk@​1.1.2100100100100100
Addedpypi/​wcmatch@​11.0.1100100100100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file examples Example code or tutorials feature New feature/enhancement or request for one internal User is a member of the `langchain-ai` GitHub organization size: XL 1000+ LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant