ToolRegistry
IntelligenceX.Tools
Registry for tools available to the model.
Inheritance
- object
- ToolRegistry
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 1
- Method ToolRunner.RunAsync
Constructors
public ToolRegistry() #Methods
public IReadOnlyList<ToolDefinition> GetDefinitions() #Returns tool definitions for the registry.
Returns
IReadOnlyList<ToolDefinition>public void Register(ITool tool) #Registers a tool.
Parameters
- tool IntelligenceX.Tools.ITool
- Tool instance.
public void Register(ITool tool, bool replaceExisting) #Registers a tool with optional replacement.
Parameters
- tool IntelligenceX.Tools.ITool
- Tool instance.
- replaceExisting bool
- Replace an existing tool with the same name.
public void RegisterAlias(string aliasName, string targetToolName, string? description = null, IReadOnlyList<string>? tags = null, bool replaceExisting = false) #Registers an alias for an already-registered tool.
Parameters
- aliasName string
- Alias name.
- targetToolName string
- Existing canonical or alias tool name to map to.
- description string? = null
- Optional alias-specific description override.
- tags System.Collections.Generic.IReadOnlyList<string>? = null
- Optional alias tags merged with canonical tags.
- replaceExisting bool = false
- Replace an existing registration that uses aliasName.
public bool TryGet(string name, out ITool tool) #Gets a tool by name.
Parameters
- name string
- tool IntelligenceX.Tools.ITool
Returns
boolpublic bool TryGetDefinition(string name, out ToolDefinition definition) #Gets a registered tool definition by name.
Parameters
- name string
- definition IntelligenceX.Tools.ToolDefinition
Returns
boolInherited 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 bool RequireWriteGovernanceRuntime { get; set; } #When true, write-intent calls are rejected if no ToolRegistry.WriteGovernanceRuntime is configured.
public bool RequireWriteAuditSinkForWriteOperations { get; set; } #When true, write-intent calls are rejected when no ToolRegistry.WriteAuditSink is configured.
public ToolWriteGovernanceMode WriteGovernanceMode { get; set; } #Runtime mode for write-governance enforcement.
public bool RequireExplicitRoutingMetadata { get; set; } #When true, registration rejects inferred routing metadata and requires explicit routing source.