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

Commit b29546e

Browse files
SamMorrowDrumsAdam Holt
andcommitted
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 <oholt@github.com>
1 parent 187a8b6 commit b29546e

File tree

3 files changed

+223
-188
lines changed

3 files changed

+223
-188
lines changed

0 commit comments

Comments
 (0)