🌐 AI搜索 & 代理 主页
Skip to content

Commit 43acefe

Browse files
refactor(search): migrate search tools to new ServerTool pattern
Migrate search.go tools (SearchRepositories, SearchCode, SearchUsers, SearchOrgs) to use the new NewTool helper and ToolDependencies pattern. - Functions now take only TranslationHelperFunc and return ServerTool - Handler generation uses ToolDependencies for typed access to clients - Update tools.go call sites to remove getClient parameter - Update tests to use new Handler(deps) pattern This demonstrates the migration pattern for additional tool files. Co-authored-by: Adam Holt <omgitsads@users.noreply.github.com>
1 parent 187a8b6 commit 43acefe

File tree

3 files changed

+223
-188
lines changed

3 files changed

+223
-188
lines changed

0 commit comments

Comments
 (0)