Skip to main content

agent

@codebolt/codeboltjs


Variable: agent

const agent: {
findAgent: (task: string, maxResult: number, agents: never[], agentLocaltion: AgentLocation, getFrom: USE_VECTOR_DB) => Promise<FindAgentByTaskResponse>;
getAgentsDetail: (agentList?: string[]) => Promise<AgentsDetailResponse>;
getAgentsList: (type: Agents) => Promise<ListAgentsResponse>;
startAgent: (agentId: string, task: string) => Promise<TaskCompletionResponse>;
};

Defined in: packages/codeboltjs/src/modules/agent.ts:7

Type Declaration

NameTypeDescriptionDefined in
findAgent()(task: string, maxResult: number, agents: never[], agentLocaltion: AgentLocation, getFrom: USE_VECTOR_DB) => Promise<FindAgentByTaskResponse>Retrieves an agent based on the specified task.packages/codeboltjs/src/modules/agent.ts:13
getAgentsDetail()(agentList?: string[]) => Promise<AgentsDetailResponse>Lists all available agents.packages/codeboltjs/src/modules/agent.ts:64
getAgentsList()(type: Agents) => Promise<ListAgentsResponse>Lists all available agents.packages/codeboltjs/src/modules/agent.ts:49
startAgent()(agentId: string, task: string) => Promise<TaskCompletionResponse>Starts an agent for the specified task.packages/codeboltjs/src/modules/agent.ts:33