Skip to content

refactor: make toolsets and providers explicit#3184

Merged
Sayt-0 merged 1 commit into
mainfrom
worktree-board-4c3eb4236652e117
Jun 20, 2026
Merged

refactor: make toolsets and providers explicit#3184
Sayt-0 merged 1 commit into
mainfrom
worktree-board-4c3eb4236652e117

Conversation

@dgageot

@dgageot dgageot commented Jun 20, 2026

Copy link
Copy Markdown
Member

The registry patterns for toolsets and providers have been implicit, relying on blank imports and init() functions to wire everything together. This refactor makes both registries explicit.

Providers now live behind a *provider.Registry which must be passed around explicitly. Similarly, toolsets are registered in pkg/teamloader/toolsets/NewDefaultToolsetRegistry(), removing the hidden coupling through blank imports in cmd/root/toolsets.go. The rag toolset, which pulls in cgo dependencies, is now available only when explicitly included via the registry.

@dgageot dgageot requested a review from a team as a code owner June 20, 2026 10:34
@aheritier aheritier added area/providers For features/issues/fixes related to LLM providers (Bedrock, LiteLLM, Qwen, custom, etc.) area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/tools For features/issues/fixes related to the usage of built-in and MCP tools kind/refactor PR refactors code without behavior change labels Jun 20, 2026
@docker-agent

Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

@Sayt-0 Sayt-0 merged commit 4f53840 into main Jun 20, 2026
12 checks passed
@Sayt-0 Sayt-0 deleted the worktree-board-4c3eb4236652e117 branch June 20, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/providers For features/issues/fixes related to LLM providers (Bedrock, LiteLLM, Qwen, custom, etc.) area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/tools For features/issues/fixes related to the usage of built-in and MCP tools kind/refactor PR refactors code without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants