Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
import { client } from './client';
import type {
AgentListResponse,
AgentView,
AgentSchemaV2Response,
CreateAgentRequest,
CreateAgentResponse,
UpdateAgentRequest,
} from './types';
export const agentApi = {
list: () => client.get<AgentListResponse>('/agent/'),
getSchema: () => client.get<AgentSchemaV2Response>('/agent/schema/v2'),
create: (body: CreateAgentRequest, options?: { silent?: boolean }) =>
client.post<CreateAgentResponse>('/agent/', body, undefined, options),
update: (agentId: string, body: UpdateAgentRequest, options?: { silent?: boolean }) =>
client.patch<AgentView>(`/agent/${agentId}`, body, undefined, options),
delete: (agentId: string) => client.delete(`/agent/${agentId}`),
};