UNPKG

@nestbox-ai/cli

Version:

The cli tools that helps developers to build agents

30 lines (29 loc) 917 B
import { MachineAgentApi, ProjectsApi } from "@nestbox-ai/admin"; export interface CreateAgentOptions { lang?: string; template?: string; project?: string; instanceName?: string; machineManifestId?: string; type?: string; goal?: string; modelBaseId?: string; machineName?: string; machineInstanceId?: number; instanceIP?: string; userId?: number; parameters?: Array<{ name: string; description: string; default: any; }>; } /** * Create a new agent in the Nestbox platform * * @param agentName The name of the agent * @param options Options including lang, template, and project * @param agentsApi The MachineAgentApi instance * @param projectsApi The ProjectsApi instance */ export declare function createAgent(agentName: string, options: CreateAgentOptions, agentsApi?: MachineAgentApi, projectsApi?: ProjectsApi): Promise<any>;