add downstream extension points#831
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds extension points to enable downstream forks and extensions of the kagent codebase by introducing plugin interfaces and refactoring the main application startup to use a callback pattern for configuration.
- Introduces plugin interfaces for extending agent translation and MCP server functionality
- Refactors the main startup function to accept configuration through a callback pattern
- Updates dependencies to support the new extension architecture
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| go/pkg/translator/adk_api_translator_types.go | Defines new plugin types and data structures for extension points |
| go/pkg/app/app.go | Refactors main startup function to use callback-based configuration |
| go/internal/httpserver/handlers/agents.go | Updates agent handler to pass nil plugins to translator |
| go/internal/controller/translator/adk_api_translator.go | Integrates plugin support into the ADK API translator |
| go/go.mod | Updates kmcp dependency version |
| go/cmd/controller/main.go | Updates main function to use new callback-based startup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| "strconv" | ||
| "strings" | ||
|
|
||
| "go.uber.org/multierr" |
There was a problem hiding this comment.
we can use stdlib error.Join instead
| podTemplateAnnotations = map[string]string{} | ||
| } | ||
| // Add config hash annotation to pod template to force rollout on config changes | ||
| podTemplateAnnotations["kagent.dev/config-hash"] = fmt.Sprintf("%d", configHash) |
There was a problem hiding this comment.
We only want to add this if config hash is set
There was a problem hiding this comment.
apparently we always set it now
EItanya
left a comment
There was a problem hiding this comment.
Changes look good to me, but commits need to be signed for DCO before we can merge
Signed-off-by: Scott Weiss <sdw35@cornell.edu>
a68ce08 to
52e92dc
Compare
adds extension points for downstream forks / extensions of the core kagent code base depends on kagent-dev/kmcp#78 Signed-off-by: Scott Weiss <sdw35@cornell.edu>
adds extension points for downstream forks / extensions of the core kagent code base
depends on kagent-dev/kmcp#78