Skip to content

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

Merged
supreme-gg-gg merged 7 commits into
mainfrom
jetc/fix/byo-python
Nov 20, 2026
Merged

supreme-gg-gg merged 7 commits into
mainfrom
jetc/fix/byo-python

Conversation

@supreme-gg-gg

@supreme-gg-gg supreme-gg-gg commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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.

This change shares the Google ADK gRPC server across all four Python adapters. Each starts A2A gRPC on port 80 by default, then exposes /readyz on 8081.

The cleanup removes the workload’s Uvicorn listener on 8080, obsolete FastAPI middleware, OpenAI’s build_local(), and redundant lifecycle wrappers. Existing Python entry points should switch from uvicorn.run(app.build(), ...) to app.build().run(). Clients continue to discover and invoke agents through the gateway.

Without --local, kagent-adk run now reads config.json and agent-card.json from the controller's revision bundle in /config; copies bundled in the agent directory are ignored. Outside Substrate, use --local.

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@supreme-gg-gg
supreme-gg-gg requested a review from a team as a code owner November 18, 2026 19:31
@github-actions github-actions Bot added the bug Something isn't working label Nov 18, 2026
@blacksmith-sh

This comment has been minimized.

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 18, 2026
@supreme-gg-gg
supreme-gg-gg marked this pull request as draft November 18, 2026 20:18
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 18, 2026
@supreme-gg-gg
supreme-gg-gg marked this pull request as ready for review November 18, 2026 20:45
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>

@codyhartsook codyhartsook left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-generated review. I reviewed the findings before posting.

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>

@codyhartsook codyhartsook left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-generated review. I reviewed the findings before posting.

Comment thread python/README.md Resolved

@codyhartsook codyhartsook left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-generated review. I reviewed the findings before posting.

Two optional cleanups. Neither blocks merge.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Nov 20, 2026
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@supreme-gg-gg
supreme-gg-gg added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 956fd44 Nov 20, 2026
31 checks passed
@supreme-gg-gg
supreme-gg-gg deleted the jetc/fix/byo-python branch November 20, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants