# ToolSelectionMetadata

Provides centralized tool-selection metadata enrichment for routing hints.

Class 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

[ToolSelectionMetadata.cs:161](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L161)

**Modifiers**

static

Provides centralized tool-selection metadata enrichment for routing hints.

## Inheritance

- object
- ToolSelectionMetadata

Filter members 

Show inherited

## Methods

`public static ToolDefinition Enrich(ToolDefinition definition, Type? toolType = null)` [#](#method-enrich-intelligencex-tools-tooldefinition-type)

[ToolSelectionMetadata.cs:161](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L161)

Returns the same definition with inferred category/tags when missing.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

**toolType System.Type? = null optional**

Returns

`ToolDefinition`

`public static string GetDefaultDomainIntentActionId(string? family)` [#](#method-getdefaultdomainintentactionid-string)

[ToolSelectionMetadata.cs:295](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L295)

Returns default action id for the specified domain intent family.

Parameters

**family string? required**

Returns

`string`

`public static IReadOnlyList<string> GetDefaultDomainSignalTokens(string? family)` [#](#method-getdefaultdomainsignaltokens-string)

[ToolSelectionMetadata.cs:344](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L344)

Returns default family-level signal tokens used for domain-intent inference.

Parameters

**family string? required**

Returns

`IReadOnlyList<string>`

GetDomainSignalTokens 2 overloads

`public static IReadOnlyList<string> GetDomainSignalTokens(ToolDefinition definition)` [#](#method-getdomainsignaltokens-intelligencex-tools-tooldefinition)

[ToolSelectionMetadata.cs:359](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L359)

Returns tool-owned domain signal tokens parsed from metadata tags.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

Returns

`IReadOnlyList<string>`

`public static IReadOnlyList<string> GetDomainSignalTokens(IReadOnlyList<string>? tags)` [#](#method-getdomainsignaltokens-collections-generic-ireadonlylist-system-string)

[ToolSelectionMetadata.cs:370](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L370)

Returns domain signal tokens parsed from metadata tags.

Parameters

**tags System.Collections.Generic.IReadOnlyList<string>? required**

Returns

`IReadOnlyList<string>`

`public static IReadOnlyList<string> GetFallbackHintKeys(ToolDefinition definition)` [#](#method-getfallbackhintkeys-intelligencex-tools-tooldefinition)

[ToolSelectionMetadata.cs:434](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L434)

Returns hint argument names used to seed fallback execution arguments for the tool.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

Returns

`IReadOnlyList<string>`

`public static IReadOnlyList<string> GetFallbackSelectionKeys(ToolDefinition definition)` [#](#method-getfallbackselectionkeys-intelligencex-tools-tooldefinition)

[ToolSelectionMetadata.cs:419](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L419)

Returns selector argument names used to gate fallback execution for the tool.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

Returns

`IReadOnlyList<string>`

`public static IReadOnlyList<string> GetNormalizedPackAliases(string? packId)` [#](#method-getnormalizedpackaliases-string)

[ToolSelectionMetadata.cs:379](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L379)

Returns normalized pack-id aliases used for pack matching.

Parameters

**packId string? required**

Returns

`IReadOnlyList<string>`

`public static IReadOnlyList<string> GetPackSearchTokens(string? packId)` [#](#method-getpacksearchtokens-string)

[ToolSelectionMetadata.cs:386](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L386)

Returns pack-oriented search tokens for planner/routing prompts.

Parameters

**packId string? required**

Returns

`IReadOnlyList<string>`

`public static bool IsKnownCompoundPackRoutingCompact(string? compactToken)` [#](#method-isknowncompoundpackroutingcompact-string)

[ToolSelectionMetadata.cs:393](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L393)

Indicates whether a compact token maps to a known compound pack identifier.

Parameters

**compactToken string? required**

Returns

`bool`

`public static string NormalizePackId(string? value)` [#](#method-normalizepackid-string)

[ToolSelectionMetadata.cs:271](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L271)

Normalizes a pack identifier into canonical known ids, or compact fallback shape for unknown ids.

Parameters

**value string? required**

Returns

`string`

`public static bool RequiresSelectionForFallback(ToolDefinition definition)` [#](#method-requiresselectionforfallback-intelligencex-tools-tooldefinition)

[ToolSelectionMetadata.cs:400](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L400)

Indicates whether fallback should require selector-like arguments for the tool.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

Returns

`bool`

`public static ToolSelectionRoutingInfo ResolveRouting(ToolDefinition definition, Type? toolType = null)` [#](#method-resolverouting-intelligencex-tools-tooldefinition-type)

[ToolSelectionMetadata.cs:201](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L201)

Resolves structured routing taxonomy for a tool definition.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

**toolType System.Type? = null optional**

Returns

`ToolSelectionRoutingInfo`

`public static bool TryNormalizeDomainIntentFamily(string? value, out string family)` [#](#method-trynormalizedomainintentfamily-string-string)

[ToolSelectionMetadata.cs:337](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L337)

Tries to normalize a domain-intent family token.

Parameters

**value string? required**

**family string required**

Returns

`bool`

`public static bool TryResolveDomainIntentActionId(ToolDefinition definition, out string actionId)` [#](#method-tryresolvedomainintentactionid-intelligencex-tools-tooldefinition-string)

[ToolSelectionMetadata.cs:314](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L314)

Tries to resolve a domain intent action id from tool metadata.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

**actionId string required**

Returns

`bool`

TryResolveDomainIntentFamily 2 overloads

`public static bool TryResolveDomainIntentFamily(ToolDefinition definition, out string family)` [#](#method-tryresolvedomainintentfamily-intelligencex-tools-tooldefinition-string)

[ToolSelectionMetadata.cs:216](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L216)

Tries to resolve an AD/public-domain routing family from normalized tool metadata.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

**family string required**

Returns

`bool`

`public static bool TryResolveDomainIntentFamily(string? toolName, string? category, IReadOnlyList<string>? tags, out string family)` [#](#method-tryresolvedomainintentfamily-string-string-collections-generic-ireadonlylist-system-string-string)

[ToolSelectionMetadata.cs:286](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L286)

Tries to resolve an AD/public-domain routing family from tool identity hints.

Parameters

**toolName string? required**

**category string? required**

**tags System.Collections.Generic.IReadOnlyList<string>? required**

**family string required**

Returns

`bool`

TryResolvePackId 2 overloads

`public static bool TryResolvePackId(ToolDefinition definition, out string packId)` [#](#method-tryresolvepackid-intelligencex-tools-tooldefinition-string)

[ToolSelectionMetadata.cs:236](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L236)

Tries to resolve a normalized pack identifier from normalized tool metadata.

Parameters

**definition IntelligenceX.Tools.ToolDefinition required**

**packId string required**

Returns

`bool`

`public static bool TryResolvePackId(string? toolName, string? category, IReadOnlyList<string>? tags, out string packId)` [#](#method-tryresolvepackid-string-string-collections-generic-ireadonlylist-system-string-string)

[ToolSelectionMetadata.cs:262](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L262)

Tries to resolve a normalized pack identifier from tool identity hints.

Parameters

**toolName string? required**

**category string? required**

**tags System.Collections.Generic.IReadOnlyList<string>? required**

**packId string required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Fields

`public const string DomainIntentFamilyAd` [#](#field-domainintentfamilyad)

[ToolSelectionMetadata.cs:16](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L16)

Domain-intent family token for internal Active Directory scope.

Value: `ad_domain`

`public const string DomainIntentFamilyPublic` [#](#field-domainintentfamilypublic)

[ToolSelectionMetadata.cs:20](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L20)

Domain-intent family token for public DNS/domain scope.

Value: `public_domain`

`public const string DomainIntentActionIdAd` [#](#field-domainintentactionidad)

[ToolSelectionMetadata.cs:24](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L24)

Default action id for selecting AD domain scope.

Value: `act_domain_scope_ad`

`public const string DomainIntentActionIdPublic` [#](#field-domainintentactionidpublic)

[ToolSelectionMetadata.cs:28](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSelectionMetadata.cs#L28)

Default action id for selecting public-domain scope.

Value: `act_domain_scope_public`

<!-- PowerForge markdown artifact sha256:BFA0EEFCA439EC33FFF0F1460498EE6C95C0C48A1226BE9765EBF86862CA0BF4 -->
