Skip to main content

Definition

Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.Object

Syntax

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 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 returned in the response, allowing continuation of previous work with full context preserved. Example JSON payload:

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

AgentId

Gets or sets the unique identifier for this agent instance.

Syntax

Property Value

Type: string?

Examples

Remarks

This ID can be used to resume the agent later via the TaskToolInput.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.

Result

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

Syntax

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.

Status

Gets or sets the completion status of the task execution.

Syntax

Property Value

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

Remarks

See TaskExecutionStatus for possible values. For agents run in the background (using TaskToolInput.RunInBackground), use the TaskOutput tool to check the status and retrieve results once the agent completes.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?