getAgentDetails()
Returns detailed agent payload (beyond list/get summary fields).
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.getAgentDetails(agentId);}Signature
function getAgentDetails( agentId: string, client?: WachtClient,): Promise<AgentDetailsResponse>Parameters
›agentId: string;
agentId: string;Target agent id.
Return value
›id?: string | undefined;
id?: string | undefined;Agent id.
›name?: string | undefined;
name?: string | undefined;Agent display name.
›instructions?: string | undefined;
instructions?: string | undefined;Agent instructions/system prompt.