Complete a subagent with a result.
Called when a tool message is received for the subagent.
complete(
toolCallId: string,
result: string,
status: "error" | "complete" = "complete"
)| Name | Type | Description |
|---|---|---|
toolCallId* | string | The tool call ID of the subagent |
result* | string | The result content |
status | "error" | "complete" | Default: "complete"The final status (complete or error) |