Repository navigation
[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
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
…2A gRPC on Substrate Signed-off-by: GitHub Action <action@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kagent-dev/kagent#3729 — fix(python): serve BYO agents over A2A gRPC on Substrate
Docs versions:
mainNo 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.mdpython/packages/kagent-adk/pyproject.tomlpython/packages/kagent-adk/src/kagent/adk/_a2a.pypython/packages/kagent-adk/src/kagent/adk/_lifespan.pypython/packages/kagent-adk/src/kagent/adk/_token.pypython/packages/kagent-adk/src/kagent/adk/cli.pyWhat 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 exposeGET /readyzon port8081. Existing Python entry points must start the returned server withapp.build().run()instead of passingapp.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 thatkagent-adk,kagent-langgraph,kagent-crewai, andkagent-openaibuild A2A gRPC servers. It no longer says that LangGraph, CrewAI, and OpenAI adapters cannot satisfy the BYO contract.How
kagent-3729was draftedPlan, and what changed it
KAgentAppand the BYO A2A contract.bring-your-own-agent.mdalready documented gRPC port80and readiness on8081, but its Python snippets stopped atbuild()and its known limitations still said the LangGraph, CrewAI, and OpenAI adapters were FastAPI JSON-RPC only.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
app.build().run().byoHarness and Agent that use that image, then wait for the Agent to become ready.80, while Agent Substrate readiness checksGET /readyzon port8081.Proposed release note
No
proposed-release-note.md:markers.notes_placeableis false for this product. The release-note text from the code pull request is: Python BYO agents built withkagent.openai.KAgentAppfailed 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.mdHow the pages were chosen (triage report)
Draft a documentation change
kagent-dev/kagent#3729 — fix(python): serve BYO agents over A2A gRPC on Substrate
kagent-dev/websitekagent.openai.KAgentAppfailed readiness on Substrate. Adding/readyzstill 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.python/README.mdpython/packages/kagent-adk/pyproject.tomlpython/packages/kagent-adk/src/kagent/adk/_a2a.pypython/packages/kagent-adk/src/kagent/adk/_lifespan.pypython/packages/kagent-adk/src/kagent/adk/_token.pypython/packages/kagent-adk/src/kagent/adk/cli.pyDraft branch:
pr-tracker-draft-kagent-3729