listAgentSubAgents()
This method lists child agents attached to a parent agent.
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'; return client.ai.listAgentSubAgents(agentId);}Signature
function listAgentSubAgents( agentId: string, client?: WachtClient,): Promise<PaginatedResponse<AiAgentWithDetails>>Parameters
›agentId: string;
agentId: string;Target agent id.
Return value
›data?: AiAgentWithDetails[] | undefined;
data?: AiAgentWithDetails[] | undefined;Current page result items.
›has_more?: boolean | undefined;
has_more?: boolean | undefined;Whether additional pages are available.
›limit?: number | undefined;
limit?: number | undefined;Effective page size when returned by backend.
›offset?: number | undefined;
offset?: number | undefined;Effective offset when returned by backend.