IntelligenceX
Class

ToolRegistry

IntelligenceX.Tools

Namespace
IntelligenceX.Tools
Assembly
IntelligenceX
Modifiers
sealed

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

Constructors

public ToolRegistry() #

Methods

public IReadOnlyList<ToolDefinition> GetDefinitions() #

Returns tool definitions for the registry.

Returns

IReadOnlyList<ToolDefinition>
Register 2 overloads
public void Register(ITool tool) #

Registers a tool.

Parameters

tool IntelligenceX.Tools.ITool required
Tool instance.
public void Register(ITool tool, bool replaceExisting) #

Registers a tool with optional replacement.

Parameters

tool IntelligenceX.Tools.ITool required
Tool instance.
replaceExisting bool required
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 required
Alias name.
targetToolName string required
Existing canonical or alias tool name to map to.
description string? = null optional
Optional alias-specific description override.
tags System.Collections.Generic.IReadOnlyList<string>? = null optional
Optional alias tags merged with canonical tags.
replaceExisting bool = false optional
Replace an existing registration that uses aliasName.
public bool TryGet(string name, out ITool tool) #

Gets a tool by name.

Parameters

name string required
tool IntelligenceX.Tools.ITool required

Returns

bool
public bool TryGetDefinition(string name, out ToolDefinition definition) #

Gets a registered tool definition by name.

Parameters

name string required
definition IntelligenceX.Tools.ToolDefinition required

Returns

bool

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.