# ToolCall

Represents a tool call requested by the model.

Class 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

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

**Modifiers**

sealed

Represents a tool call requested by the model.

## Inheritance

- object
- ToolCall

## Usage

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

- Method [ToolCallParser.Extract](/api/intelligencex-openai-toolcalling-toolcallparser/#method-extract-intelligencex-openai-appserver-models-turninfo)
- Property [ToolRunResult.ToolCalls](/api/intelligencex-openai-toolcalling-toolrunresult/#property-toolcalls)

### Accepted by parameters 1

- Constructor [ToolRunResult.ToolRunResult](/api/intelligencex-openai-toolcalling-toolrunresult/#constructor-ctor-intelligencex-openai-appserver-models-turninfo-collections-generic-ireadonlylist-intelligencex-tools-toolcall-collections-generic-ireadonlylist-intelligencex-tools-tooloutput) parameter `calls`

Filter members 

Show inherited

## Constructors

`public ToolCall(string callId, string name, string? input, JsonObject? arguments, JsonObject raw)` [#](#constructor-ctor-string-string-string-intelligencex-json-jsonobject-intelligencex-json-jsonobject)

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

Initializes a new tool call instance.

Parameters

**callId string required**

**name string required**

**input string? required**

**arguments IntelligenceX.Json.JsonObject? required**

**raw IntelligenceX.Json.JsonObject required**

## 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 string CallId { get; }` [#](#property-callid)

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

Gets the tool call identifier.

`public string Name { get; }` [#](#property-name)

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

Gets the tool name.

`public string? Input { get; }` [#](#property-input)

[ToolCall.cs:32](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolCall.cs#L32)

Gets the raw input string.

`public JsonObject? Arguments { get; }` [#](#property-arguments)

[ToolCall.cs:36](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolCall.cs#L36)

Gets the parsed argument object when available.

`public JsonObject Raw { get; }` [#](#property-raw)

[ToolCall.cs:40](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolCall.cs#L40)

Gets the raw JSON payload.

<!-- PowerForge markdown artifact sha256:40FE4D52EC0A0F74F5E66261657C2CF024654B78E719D2DFE6E7E7C6DADFA731 -->
