Skip to main content

SubagentTaskCompletedNotify

@codebolt/codeboltjs


Function: SubagentTaskCompletedNotify()

function SubagentTaskCompletedNotify(
parentAgentId: string,
subagentId: string,
taskId: string,
result: any,
status: string,
toolUseId?: string): void;

Defined in: packages/codeboltjs/src/notificationfunctions/agent.ts:111

Notifies that a subagent task has been completed

Parameters

ParameterTypeDescription
parentAgentIdstringThe parent agent ID
subagentIdstringThe subagent ID
taskIdstringThe task ID
resultanyThe task result
statusstringThe task status
toolUseId?stringOptional custom toolUseId, will be generated if not provided Requirements: 1.3 - WHEN I call codebolt.notify.agent.SubagentTaskCompletedNotify() THEN the system SHALL send a SubagentTaskCompletedNotification via WebSocket

Returns

void