refactor(go-agent): unify tool-backed component creation - #16865
Closed
Hz-186 wants to merge 2 commits into
Closed
Conversation
Contributor
📝 WalkthroughWalkthroughThe component package now provides shared tool-to-component factory wiring. GitHub and SearXNG adopt this wiring, tool builders accept additional node parameters, and fixture initialization updates legacy, BGPT, and GitHub registrations. ChangesTool component wiring
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Init as Component init
participant Registry as Component registry
participant Factory as Tool component factory
participant Tool as agenttool.BuildByName
participant Component as GitHub or SearXNG component
Init->>Registry: Register tool component specification
Registry->>Factory: Create component factory
Factory->>Tool: Build tool with params
Tool-->>Factory: Return toolInvoker
Factory->>Component: Wrap invoker
Component-->>Factory: Return Component
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Hz-186
marked this pull request as draft
July 14, 2026 02:29
Hz-186
marked this pull request as ready for review
July 14, 2026 02:30
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.
Summary
Tested:
bash build.sh --test ./internal/agent/component/...