API Reference
ToolRegistry
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() #IReadOnlyList<ToolDefinition>Returns tool definitions for the registry.
public Void Register(ITool tool) #VoidRegisters a tool.
Parameters
- tool IntelligenceX.Tools.ITool
- Tool instance.
public Void Register(ITool tool, Boolean replaceExisting) #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) #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) #BooleanGets a tool by name.
Parameters
- name System.String
- tool IntelligenceX.Tools.ITool
public Boolean TryGetDefinition(String name, out ToolDefinition definition) #BooleanGets a registered tool definition by name.
Parameters
- name System.String
- definition IntelligenceX.Tools.ToolDefinition
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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 ToolRegistry.WriteGovernanceRuntime is configured.
public Boolean 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 Boolean RequireExplicitRoutingMetadata { get; set; } #When true, registration rejects inferred routing metadata and requires explicit routing source.