WithToolsetRegistry allows using a custom toolset registry instead of the default.
(registry ToolsetRegistry)
| 68 | |
| 69 | // WithToolsetRegistry allows using a custom toolset registry instead of the default. |
| 70 | func WithToolsetRegistry(registry ToolsetRegistry) Opt { |
| 71 | return func(opts *loadOptions) error { |
| 72 | opts.toolsetRegistry = registry |
| 73 | return nil |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | // WithProviderRegistry allows using a custom model provider registry instead of the default. |
| 78 | func WithProviderRegistry(registry *provider.Registry) Opt { |
no outgoing calls