detachAgentSubAgent()
This method manages parent/child relationships between agents.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function example() { const client = await wachtClient(); const agentId: string = 'agentid-123'; const subAgentId: string = 'subagentid-123'; return client.ai.detachAgentSubAgent(agentId, subAgentId);}Signature
function detachAgentSubAgent( agentId: string, subAgentId: string, client?: WachtClient,): Promise<void>Parameters
›agentId: string;
agentId: string;Target agent id.
›subAgentId: string;
subAgentId: string;Sub-agent id linked to the parent agent.