NewInventory creates an Inventory with all available tools, resources, and prompts. Tools, resources, and prompts are self-describing with their toolset metadata embedded. This function is stateless - no dependencies are captured. Handlers are generated on-demand during registration via RegisterAll(
(t translations.TranslationHelperFunc)
| 11 | // Handlers are generated on-demand during registration via RegisterAll(ctx, server, deps). |
| 12 | // The "default" keyword in WithToolsets will expand to toolsets marked with Default: true. |
| 13 | func NewInventory(t translations.TranslationHelperFunc) *inventory.Builder { |
| 14 | return inventory.NewBuilder(). |
| 15 | SetTools(AllTools(t)). |
| 16 | SetResources(AllResources(t)). |
| 17 | SetPrompts(AllPrompts(t)) |
| 18 | } |