MIL-115 Add A2A HITL skill loading demo#1860
Open
davidmarkgardiner wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new kustomize-based example demonstrating A2A delegation with a human-in-the-loop checkpoint and runtime skill loading from a Git repository, intended as a runnable demo for MIL-115.
Changes:
- Introduces a new
examples/a2a-human-in-the-loopkustomize demo (ModelConfig + two declarative Agents). - Implements coordinator→specialist delegation over A2A, with the specialist pausing on
ask_userapproval before proceeding. - Demonstrates dynamic skill loading via
spec.skills.gitRefsand running the loaded skill via theskills+bashtools.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| examples/a2a-human-in-the-loop/README.md | Deployment/run/cleanup instructions for the A2A + HITL + git skill loading demo. |
| examples/a2a-human-in-the-loop/modelconfig.yaml | Adds an OpenAI-backed ModelConfig used by the demo agents. |
| examples/a2a-human-in-the-loop/kustomization.yaml | Wires the example resources together for kubectl apply -k. |
| examples/a2a-human-in-the-loop/agents.yaml | Defines the coordinator and specialist agents, including A2A config and git skill loading. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| skills: | ||
| gitRefs: | ||
| - url: https://github.com/kagent-dev/kagent.git | ||
| ref: main |
Comment on lines
+5
to
+6
| - `a2a-hitl-coordinator` receives the user request and delegates to the specialist by using kagent's Agent tool, which communicates over A2A. | ||
| - `a2a-hitl-specialist` pauses at a human approval checkpoint with the built-in `ask_user` tool, then loads and runs the `kebab-maker` skill from `https://github.com/kagent-dev/kagent.git` at runtime through `spec.skills.gitRefs`. |
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.
Refs MIL-115
Summary
examples/a2a-human-in-the-loopkustomize demo with coordinator and specialist agentsask_userHITL toolhttps://github.com/kagent-dev/kagent.gitviaspec.skills.gitRefsValidation
kubectl kustomize examples/a2a-human-in-the-loopkubectl apply --dry-run=server -k examples/a2a-human-in-the-loopagent/a2a-hitl-specialistandagent/a2a-hitl-coordinatorreachedReady=True; demo resources and secret were deleted afterwardNote: actual chat completion still requires a real
OPENAI_API_KEYsecret as documented in the README.