Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.ObjectSyntax
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 thetool_name is “Task”.
Available agent types include:
general-purpose- For research, code search, and multi-step tasksExplore- Fast codebase exploration and pattern searchesPlan- Software architecture and implementation planningclaude-code-guide- Documentation and guidance queries
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?