sdkDeterministic
Delegate agent chat turn
pipeline.delegateAgentChatTurn
Delegate a claimed external chat task to another public Pipeline agent with originating conversation context and scope. Returns a childTurnId to claim and execute with your current coding-agent model. No hosted inference. Complete the child, then claim and execute its returned parent continuation. Intent ask/delegate returns to the parent; handoff transfers remaining ownership.
Parameters
workspaceId
string
No description.
actionrequired
string
No description.
turnIdrequired
string
No description.
claimTokenrequired
string
No description.
recipientrequired
string
No description.
strategist | gtm_engineer | reply_agent | sdr_agent | gtm_lead | content_agent | engagement
taskrequired
string
No description.
intentrequired
string
No description.
ask | delegate | handoff
Example
TypeScripttypescript
await pipeline.delegateAgentChatTurn({"action": "external_delegate","turnId": "00000000-0000-4000-8000-000000000000","claimToken": "00000000-0000-4000-8000-000000000000","recipient": "strategist","task": "example","intent": "delegate"})
Response
Success response schemajson schema
{"type": "object","properties": {"childTurnId": {"type": "string"},"conversationId": {"type": "string"},"executionMode": {"type": "string","enum": ["external_agent"]},"intent": {"type": "string"}},"required": ["childTurnId","conversationId","executionMode","intent"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.