Class
ToolRegistry
Registry for tools available to the model.
Inheritance
- Object
- ToolRegistry
Constructors
public ToolRegistry() #Methods
public IReadOnlyList<ToolDefinition> GetDefinitions() #Returns:
IReadOnlyList<ToolDefinition>Returns tool definitions for the registry.
Register 2 overloads
public Void Register(ITool tool) #Returns:
VoidRegisters a tool.
Parameters
- tool IntelligenceX.Tools.ITool
- Tool instance.
public Void Register(ITool tool, Boolean replaceExisting) #Returns:
VoidRegisters a tool with optional replacement.
Parameters
- tool IntelligenceX.Tools.ITool
- Tool instance.
- replaceExisting System.Boolean
- Replace an existing tool with the same name.
public Void RegisterAlias(String aliasName, String targetToolName, String description = null, IReadOnlyList<String> tags = null, Boolean replaceExisting = false) #Returns:
VoidRegisters an alias for an already-registered tool.
Parameters
- aliasName System.String
- Alias name.
- targetToolName System.String
- Existing canonical or alias tool name to map to.
- description System.String = null
- Optional alias-specific description override.
- tags System.Collections.Generic.IReadOnlyList{System.String} = null
- Optional alias tags merged with canonical tags.
- replaceExisting System.Boolean = false
- Replace an existing registration that uses aliasName.
public Boolean TryGet(String name, out ITool tool) #Returns:
BooleanGets a tool by name.
Parameters
- name System.String
- tool IntelligenceX.Tools.ITool@
public Boolean TryGetDefinition(String name, out ToolDefinition definition) #Returns:
BooleanGets a registered tool definition by name.
Parameters
- name System.String
- definition IntelligenceX.Tools.ToolDefinition@
Inherited Methods
Properties
public IToolWriteGovernanceRuntime WriteGovernanceRuntime { get; set; } #Runtime authorizer used for write-intent tool calls.
public IToolWriteAuditSink WriteAuditSink { get; set; } #Append-only audit sink used to persist write authorization events.
public Boolean RequireWriteGovernanceRuntime { get; set; } #When true, write-intent calls are rejected if no WriteGovernanceRuntime is configured.
public Boolean RequireWriteAuditSinkForWriteOperations { get; set; } #When true, write-intent calls are rejected when no WriteAuditSink is configured.
public ToolWriteGovernanceMode WriteGovernanceMode { get; set; } #Runtime mode for write-governance enforcement.
public Boolean RequireExplicitRoutingMetadata { get; set; } #When true, registration rejects inferred routing metadata and requires explicit routing source.