IntelligenceX
Class

ToolDefinition

IntelligenceX.Tools

Namespace
IntelligenceX.Tools
Assembly
IntelligenceX
Modifiers
sealed

Defines a tool that can be invoked by the model.

Inheritance

  • object
  • ToolDefinition

Usage

Explore 29 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 19

Constructors

public ToolDefinition(string name, string? description = null, JsonObject? parameters = null, string? displayName = null, string? category = null, IReadOnlyList<string>? tags = null, ToolWriteGovernanceContract? writeGovernance = null, IReadOnlyList<ToolAliasDefinition>? aliases = null, string? aliasOf = null, ToolAuthenticationContract? authentication = null, ToolRoutingContract? routing = null, ToolSetupContract? setup = null, ToolHandoffContract? handoff = null, ToolRecoveryContract? recovery = null, ToolExecutionContract? execution = null) #

Initializes a new tool definition.

Parameters

name string required
Tool name.
description string? = null optional
Tool description.
parameters IntelligenceX.Json.JsonObject? = null optional
JSON schema for tool parameters.
displayName string? = null optional
Optional human-friendly tool display name.
category string? = null optional
Optional tool category label.
tags System.Collections.Generic.IReadOnlyList<string>? = null optional
Optional tags used for model/tooling guidance.
writeGovernance IntelligenceX.Tools.ToolWriteGovernanceContract? = null optional
Optional write-governance contract for mutating tools.
aliases System.Collections.Generic.IReadOnlyList<IntelligenceX.Tools.ToolAliasDefinition>? = null optional
Optional aliases that should invoke the same tool implementation.
aliasOf string? = null optional
Optional canonical tool name when this definition is an alias.
authentication IntelligenceX.Tools.ToolAuthenticationContract? = null optional
Optional authentication contract for tools that require/declare auth behavior.
routing IntelligenceX.Tools.ToolRoutingContract? = null optional
Optional routing contract for host-side orchestration.
setup IntelligenceX.Tools.ToolSetupContract? = null optional
Optional setup contract for prerequisites and setup hints.
handoff IntelligenceX.Tools.ToolHandoffContract? = null optional
Optional handoff contract for cross-pack argument mappings.
recovery IntelligenceX.Tools.ToolRecoveryContract? = null optional
Optional recovery contract for tool-owned resilience behavior.
execution IntelligenceX.Tools.ToolExecutionContract? = null optional
Optional execution contract for local/remote capability and scope metadata.

Methods

public ToolDefinition CreateAliasDefinition(string aliasName, string? description = null, IReadOnlyList<string>? tags = null) #

Creates an alias definition derived from the current canonical definition.

Parameters

aliasName string required
Alias tool name.
description string? = null optional
Optional alias-specific description override.
tags System.Collections.Generic.IReadOnlyList<string>? = null optional
Optional alias tags merged with canonical tags.
public string? GetDescriptionWithTags() #

Returns description text augmented with tag hints.

Returns

string?

Properties

public string Name { get; } #

Gets the tool name.

public string? Description { get; } #

Gets the tool description.

public JsonObject? Parameters { get; } #

Gets the JSON schema for tool parameters.

public string? DisplayName { get; } #

Gets optional human-friendly display name.

public string? Category { get; } #

Gets optional tool category label.

public IReadOnlyList<string> Tags { get; } #

Gets optional tags associated with this tool definition. Tags are normalized to distinct deterministic ordering (ordinal-ignore-case).

public IReadOnlyList<ToolAliasDefinition> Aliases { get; } #

Gets optional aliases exposed for this tool definition.

public ToolWriteGovernanceContract? WriteGovernance { get; } #

Gets optional write-governance contract for mutating tools.

public ToolAuthenticationContract? Authentication { get; } #

Gets optional authentication contract for tools that require/declare auth behavior.

public ToolExecutionContract? Execution { get; } #

Gets optional execution contract for explicit local/remote capability metadata.

public ToolRoutingContract? Routing { get; } #

Gets optional routing contract for host-side orchestration.

public ToolSetupContract? Setup { get; } #

Gets optional setup contract for prerequisites and setup hints.

public ToolHandoffContract? Handoff { get; } #

Gets optional handoff contract for cross-pack argument mappings.

public ToolRecoveryContract? Recovery { get; } #

Gets optional recovery contract for tool-owned resilience behavior.

public string? AliasOf { get; } #

Gets the canonical tool name when this definition represents an alias.

public string CanonicalName { get; } #

Gets the canonical tool name for this definition.