(base *coretools.ToolRegistry, definition AgentDef)
| 63 | } |
| 64 | |
| 65 | func BuildFilteredRegistry(base *coretools.ToolRegistry, definition AgentDef) *coretools.ToolRegistry { |
| 66 | if base == nil { |
| 67 | return coretools.NewToolRegistry() |
| 68 | } |
| 69 | return base.FilteredCopy(definition.ToolsAllowlist, definition.ToolsDenylist, definition.IsReadOnly, false) |
| 70 | } |
| 71 | |
| 72 | func stringSet(values ...string) map[string]struct{} { |
| 73 | out := make(map[string]struct{}, len(values)) |
no test coverage detected