flux-agent
Version:
FluxAgent - 一个可灵活插拔的AI Agent系统框架,基于TypeScript开发,支持流式执行、事件系统、插件系统、知识库管理等功能 (Protected Release) (Protected Release) (Protected Release) (Protected Release) (Protected Release) (Protected Release) (Protected Release) (Protected Release) (Protected Release) (
31 lines (30 loc) • 795 B
TypeScript
import { ExecutionSession } from './ExecutionSession';
import { LLMResult, PhaseResult, ToolResult } from './types';
/**
* 工具协调器
* 负责处理工具调用和相关逻辑
*/
export declare class ToolOrchestrator {
private agent;
constructor(agent: any);
/**
* 处理工具调用
*/
handleTools(llmResult: LLMResult, session: ExecutionSession): Promise<ToolResult>;
/**
* 执行单个工具调用
*/
private executeSingleTool;
/**
* 处理系统工具的特殊逻辑
*/
private handleSystemTools;
/**
* 处理阶段结束工具
*/
private handleEndPhaseTool;
/**
* 处理特殊阶段的响应逻辑
*/
handleSpecialPhaseLogic(llmResult: LLMResult): Promise<PhaseResult | undefined>;
}