NewWacht Bench is live — AI-assisted development for Wacht

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;
Target agent id.

Return value

data?: AiAgentWithDetails[] | undefined;
Current page result items.
has_more?: boolean | undefined;
Whether additional pages are available.
limit?: number | undefined;
Effective page size when returned by backend.
offset?: number | undefined;
Effective offset when returned by backend.

On this page