# ToolSetupContract

Declares setup and prerequisite metadata for a tool.

Class 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

[ToolSetupContract.cs:23](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L23)

**Modifiers**

sealed

Declares setup and prerequisite metadata for a tool.

## Inheritance

- object
- ToolSetupContract

## Usage

Explore 2 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.

### Returned or exposed by 1

- Property [ToolDefinition.Setup](/api/intelligencex-tools-tooldefinition/#property-setup)

### Accepted by parameters 1

- Constructor [ToolDefinition.ToolDefinition](/api/intelligencex-tools-tooldefinition/#constructor-ctor-string-string-intelligencex-json-jsonobject-string-string-collections-generic-ireadonlylist-system-string-intelligencex-tools-toolwritegovernancecontract-collections-generic-ireadonlylist-intelligencex-tools-toolaliasdefinition-string-intelligencex-tools-toolauthenticationcontract-intelligencex-tools-toolroutingcontract-intelligencex-tools-toolsetupcontract-intelligencex-tools-toolhandoffcontract-intelligencex-tools-toolrecoverycontract-intelligencex-tools-toolexecutioncontract) parameter `setup`

Filter members 

Show inherited

## Constructors

`public ToolSetupContract()` [#](#constructor-ctor)

[ToolSetupContract.cs:23](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L23)

## Methods

`public void Validate()` [#](#method-validate)

[ToolSetupContract.cs:44](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L44)

Validates the contract and throws when invalid.

## 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?`

## Properties

`public bool IsSetupAware { get; set; }` [#](#property-issetupaware)

[ToolSetupContract.cs:18](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L18)

True when this tool participates in setup/precondition orchestration.

`public string SetupContractId { get; set; }` [#](#property-setupcontractid)

[ToolSetupContract.cs:23](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L23)

Stable setup contract identifier.

`public IReadOnlyList<ToolSetupRequirement> Requirements { get; set; }` [#](#property-requirements)

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

Optional setup requirement descriptors.

`public string SetupToolName { get; set; }` [#](#property-setuptoolname)

[ToolSetupContract.cs:33](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L33)

Optional setup helper tool name (for example pack setup probe).

`public IReadOnlyList<string> SetupHintKeys { get; set; }` [#](#property-setuphintkeys)

[ToolSetupContract.cs:38](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L38)

Optional setup hint keys for UI/prompting layers.

## Fields

`public const string DefaultContractId` [#](#field-defaultcontractid)

[ToolSetupContract.cs:13](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolSetupContract.cs#L13)

Default contract id for IX setup metadata.

Value: `ix.tool-setup.v1`

<!-- PowerForge markdown artifact sha256:4C58BC75172B0A40AB16BFEB0943E87D328FCA275743BB3A711B9FB635060385 -->
