mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-10 16:08:16 -05:00
## Description Tool `invoke()` and `RequiresClientAuthorization()` takes a new input argument -- Resource Manager. Resource manager will be used to retrieve Source in the next step. In order to achieve the goal, this PR implements the follows: * move resource manager from the server package to a new package to prevent import cycles (between server and mcp) * added a new interface in `tools.go` to prevent import cycle (between resources and tools package) * add new input argument in all tools ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [x] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) - [x] Make sure to add `!` if this involve a breaking change
7.1 KiB
7.1 KiB