UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

19 lines (16 loc) 595 B
import type { AgentEvent } from './event'; import { AgentInstruction, AgentRuntimeContext } from './instruction'; import { AgentState } from './state'; export type InstructionExecutor = ( instruction: AgentInstruction, state: AgentState, ) => Promise<{ events: AgentEvent[]; newState: AgentState; /** Next context to pass to Agent runner (if execution should continue) */ nextContext?: AgentRuntimeContext; }>; export interface RuntimeConfig { /** Custom executors for specific instruction types */ executors?: Partial<Record<AgentInstruction['type'], InstructionExecutor>>; }