import { Workspace } from '../../agent-utils/index.js'; import { RunnableAgent, ChatMessage, AgentOutput, RunResult, LlmQuery, LlmQueryBuilder, ChatLogs, LlmModel, Chat, FunctionDefinition, AgentFunction, Prompt, AgentContext } from '../../agent-core/index.js'; import { AgentConfig } from './AgentConfig.js'; import { AgentFunctionBase } from '../../functions/index.js'; export type GoalRunArgs = { goal: string; }; export declare class Agent implements RunnableAgent { readonly config: AgentConfig; readonly context: AgentContext; constructor(config: AgentConfig, context: AgentContext); get workspace(): Workspace; init(): Promise; run(args: TRunArgs): AsyncGenerator; onFirstRun(_: TRunArgs, chat: Chat): Promise; protected initRun(args: TRunArgs): Promise; protected executeFunction(func: AgentFunctionBase, args: any, chat: Chat): Promise; protected query(msgs?: ChatMessage[]): LlmQuery; protected queryBuilder(msgs?: ChatMessage[]): LlmQueryBuilder; protected askLlm(query: string | Prompt, opts?: { maxResponseTokens?: number; model?: LlmModel; }): Promise; protected createEmbeddingVector(text: string): Promise; protected beforeLlmResponse(): Promise<{ logs: ChatLogs; agentFunctions: FunctionDefinition[]; allFunctions: AgentFunction[]; }>; }