> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TaskToolResponse

> Represents the response payload returned by the Claude Code Task tool after executing a subagent to handle a complex task.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks.Tools.Responses

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.TaskToolResponse
```

## Summary

Represents the response payload returned by the Claude Code Task tool after executing
a subagent to handle a complex task.

## Remarks

The Task tool launches specialized agents (subprocesses) that autonomously handle
complex, multi-step tasks. Each agent type has specific capabilities and tools available
to it. This response is received in the [TaskPostToolUsePayload](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/TaskPostToolUsePayload.md)
when the `tool_name` is "Task".

Available agent types include:

* `general-purpose` - For research, code search, and multi-step tasks
* `Explore` - Fast codebase exploration and pattern searches
* `Plan` - Software architecture and implementation planning
* `claude-code-guide` - Documentation and guidance queries

Agents can be resumed using the [TaskToolResponse.AgentId](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/TaskToolResponse.md#agentid) returned in the response,
allowing continuation of previous work with full context preserved.

Example JSON payload:

```csharp theme={null}
{
  "result": "I found 5 files that match your search criteria...",
  "agentId": "agent_01ABC123XYZ",
  "status": "completed"
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public TaskToolResponse()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;AgentId

Gets or sets the unique identifier for this agent instance.

#### Syntax

```csharp theme={null}
public string AgentId { get; set; }
```

#### Property Value

Type: `string?`

#### Examples

```csharp theme={null}
"agent_01ABC123XYZ789"
```

#### Remarks

This ID can be used to resume the agent later via the [TaskToolInput.Resume](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/TaskToolInput.md#resume)
parameter. When resumed, the agent continues with its full previous context preserved,
allowing for follow-up work or continuation of interrupted tasks.

Agent IDs are unique within a session and follow the format `"agent_"` followed
by an identifier string.

### &#x20;Result

Gets or sets the result message returned by the agent upon completion.

#### Syntax

```csharp theme={null}
public string Result { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

This contains the agent's response after completing (or attempting to complete)
the assigned task. The content varies based on what was requested and what
the agent discovered or accomplished.

Note that agent results are not automatically visible to the user. Claude must
summarize or relay the information in its response to share it with the user.

### &#x20;Status

Gets or sets the completion status of the task execution.

#### Syntax

```csharp theme={null}
public System.Nullable<CloudNimble.ClaudeEssentials.Hooks.TaskExecutionStatus> Status { get; set; }
```

#### Property Value

Type: `System.Nullable<CloudNimble.ClaudeEssentials.Hooks.TaskExecutionStatus>`

#### Remarks

See [TaskExecutionStatus](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/TaskExecutionStatus.md) for possible values.

For agents run in the background (using [TaskToolInput.RunInBackground](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/TaskToolInput.md#runinbackground)),
use the TaskOutput tool to check the status and retrieve results once the agent completes.

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.