UNPKG

@eko-ai/eko

Version:

Empowering language to transform human words into action.

26 lines 862 B
import { Agent } from "../agent"; import Chain, { AgentChain } from "./chain"; import { EkoConfig, Workflow, WorkflowAgent } from "../types"; export default class Context { taskId: string; config: EkoConfig; chain: Chain; agents: Agent[]; controller: AbortController; variables: Map<string, any>; workflow?: Workflow; paused: boolean; conversation: string[]; constructor(taskId: string, config: EkoConfig, agents: Agent[], chain: Chain); checkAborted(): Promise<void>; currentAgent(): [Agent, WorkflowAgent, AgentContext] | null; } export declare class AgentContext { agent: Agent; context: Context; agentChain: AgentChain; variables: Map<string, any>; consecutiveErrorNum: number; constructor(context: Context, agent: Agent, agentChain: AgentChain); } //# sourceMappingURL=context.d.ts.map