UNPKG

@continue-reasoning/agent

Version:

A platform-agnostic AI agent framework for building autonomous AI agents with tool execution capabilities

20 lines 695 B
import { BaseAgent } from "./baseAgent"; import { GeminiChat } from "./geminiChat"; import { CoreToolScheduler } from "./coreToolScheduler"; export class StandardAgent extends BaseAgent { tools; constructor(tools, config) { let actualChatConfig = { ...config.chatConfig, toolDeclarations: tools.map(tool => tool.schema), }; const chat = new GeminiChat(actualChatConfig); const toolScheduler = new CoreToolScheduler({ ...config.toolSchedulerConfig, tools: tools, }); super(config.agentConfig, chat, toolScheduler); this.tools = tools; } } //# sourceMappingURL=standardAgent.js.map