Skip to content

add downstream extension points#831

Merged
EItanya merged 1 commit into
mainfrom
add-extension-points
Sep 3, 2025
Merged

add downstream extension points#831
EItanya merged 1 commit into
mainfrom
add-extension-points

Conversation

@ilackarms

Copy link
Copy Markdown
Collaborator

adds extension points for downstream forks / extensions of the core kagent code base

depends on kagent-dev/kmcp#78

Copilot AI review requested due to automatic review settings August 29, 2025 21:55

Copilot AI 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.

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.

Comment thread go/internal/controller/translator/adk_api_translator.go Outdated

@yuval-k yuval-k left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

overall lgtm

"strconv"
"strings"

"go.uber.org/multierr"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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)

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.

We only want to add this if config hash is set

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

apparently we always set it now

EItanya
EItanya previously approved these changes Sep 3, 2025

@EItanya EItanya 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.

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>
@ilackarms ilackarms force-pushed the add-extension-points branch from a68ce08 to 52e92dc Compare September 3, 2025 15:20
@EItanya EItanya merged commit d15ff4d into main Sep 3, 2025
23 of 24 checks passed
@EItanya EItanya deleted the add-extension-points branch September 3, 2025 17:41
Raghavendiran-2002 pushed a commit to Raghavendiran-2002/kagent that referenced this pull request Apr 30, 2026
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>
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.

4 participants