UNPKG

@nestbox-ai/cli

Version:

The cli tools that helps developers to build agents

31 lines (30 loc) 975 B
import { MachineAgentApi, MachineInstancesApi, ProjectsApi } from "@nestbox-ai/admin"; export interface ApiInstances { agentsApi: MachineAgentApi; projectsApi: ProjectsApi; instanceApi: MachineInstancesApi; } /** * Create API instances with current authentication using setupAuthAndConfig */ export declare function createApis(): ApiInstances; export type ManifestAgent = { name: string; description: string; entry: string; type?: "REGULAR" | "CHATBOT" | "WORKFLOW"; inputSchema: { type: "object"; properties: Record<string, { type: string; description?: string; default?: string | number | boolean | null; }>; required?: string[]; }; }; export type ManifestFile = { agents: ManifestAgent[]; }; export declare function loadAgentFromYaml(agentName: string): Promise<ManifestAgent | undefined>; export declare function loadAllAgentNamesFromYaml(): Promise<string[]>;