Skip to content

[Automated] Draft docs (kagent): fix(python): serve BYO agents over A2A gRPC on Substrate - #748

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
pr-tracker-draft-kagent-3729
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
pr-tracker-draft-kagent-3729

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

kagent-dev/kagent#3729 — fix(python): serve BYO agents over A2A gRPC on Substrate

Docs versions: main

No code-path rule covers 46 touched file(s). The planner could route these only by identifier search, so the candidate pages may miss what they changed, including in the other mode:

  • python/README.md
  • python/packages/kagent-adk/pyproject.toml
  • python/packages/kagent-adk/src/kagent/adk/_a2a.py
  • python/packages/kagent-adk/src/kagent/adk/_lifespan.py
  • python/packages/kagent-adk/src/kagent/adk/_token.py
  • python/packages/kagent-adk/src/kagent/adk/cli.py
  • ...and 40 more

What changes for users: Python BYO agents that use the kagent helper packages now serve A2A over gRPC on the runtime port, defaulting to 80, and expose GET /readyz on port 8081. Existing Python entry points must start the returned server with app.build().run() instead of passing app.build() to Uvicorn.

What the docs now say: The Bring your own agent page now starts the Python helper server with app.build().run() and says that kagent-adk, kagent-langgraph, kagent-crewai, and kagent-openai build A2A gRPC servers. It no longer says that LangGraph, CrewAI, and OpenAI adapters cannot satisfy the BYO contract.

How kagent-3729 was drafted

Plan, and what changed it

  • Planned: Update the BYO agent page where it documents KAgentApp and the BYO A2A contract.
  • Learned: bring-your-own-agent.md already documented gRPC port 80 and readiness on 8081, but its Python snippets stopped at build() and its known limitations still said the LangGraph, CrewAI, and OpenAI adapters were FastAPI JSON-RPC only.
  • Did: Updated the Python helper snippets and replaced the stale limitation with the new app.build().run() requirement.

Why a documentation change is necessary

The pull request changes the Python helper packages from FastAPI or JSON-RPC entry points to a shared A2A gRPC server and updates Python samples to call app.build().run(). The target page still told readers that several Python adapters could not satisfy the BYO contract, which is now wrong. The same page showed Python examples that built the server but did not run it, so a reader could copy an entry point that no longer starts the server.

How to verify this change

  1. Build a Python BYO image whose entry point uses one of the kagent Python helper packages and calls app.build().run().
  2. Apply a byo Harness and Agent that use that image, then wait for the Agent to become ready.
  3. Invoke the Agent through the kagent A2A gateway. The invocation should reach the Python helper over gRPC on port 80, while Agent Substrate readiness checks GET /readyz on port 8081.

Proposed release note

No proposed-release-note.md: markers.notes_placeable is false for this product. The release-note text from the code pull request is: Python BYO agents built with kagent.openai.KAgentApp failed readiness on Substrate, and the gateway sent gRPC requests to an HTTP JSON-RPC server. The Python helper packages now share the A2A gRPC server behavior.

Files in this pull request

  • docs-site/content/kagent/main/agents/bring-your-own-agent.md
How the pages were chosen (triage report)

Draft a documentation change

kagent-dev/kagent#3729 — fix(python): serve BYO agents over A2A gRPC on Substrate

  • Product: kagent (upstream) → kagent-dev/website
  • Docs version: main
  • Summary (read from the body): Python BYO agents built with kagent.openai.KAgentApp failed readiness on Substrate. Adding /readyz still left the gateway sending gRPC requests to an HTTP JSON-RPC server, so requests never reached the model. CrewAI and LangGraph had the same issue.
  • Not tested: a cluster was used only to dry-run the YAML manifests the draft added; prose, inline field paths and commands are unrun
  • No rule covers 46 touched file(s). The candidate pages below come from the files that DID match a rule, so they may scope this narrower than the change is. Read these before deciding the change is only about the pages listed:
    • python/README.md
    • python/packages/kagent-adk/pyproject.toml
    • python/packages/kagent-adk/src/kagent/adk/_a2a.py
    • python/packages/kagent-adk/src/kagent/adk/_lifespan.py
    • python/packages/kagent-adk/src/kagent/adk/_token.py
    • python/packages/kagent-adk/src/kagent/adk/cli.py
    • ...and 40 more

Draft branch: pr-tracker-draft-kagent-3729

…2A gRPC on Substrate

Signed-off-by: GitHub Action <action@github.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