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) (
13 lines (12 loc) • 479 B
TypeScript
export interface RequestResponse {
type: 'accept' | 'reject' | 'skip' | 'error';
payload?: any;
}
export declare class RequestHub {
private requestMap;
private outterListener;
registerResponse(requestId: string, response: (response: RequestResponse) => void): void;
sendRequest(requestId: string, payload: any): void;
onRequest(callback: (requestId: string, payload: any) => void): void;
response(requestId: string, res: RequestResponse): void;
}