v0.1.2: 全项目代码审查修复 + 子代理编排器 + 上下文压缩 + 并行工具执行
后端修复: Ollama adapter 移除死代码/修复超时硬编码/iteration硬编码/pullModel无超时/流异常断开补发DONE; SSE解析器支持非字符串arguments; Sandbox fail-closed安全加固; IPC移除未使用变量 新增功能: TaskOrchestrator子任务编排器; DelegateTaskTool委派工具; Agent Loop并行工具执行; 上下文自动压缩; 记忆检索注入System Prompt 前端修复: useAgentStream text_delta thought累积bug; 工具调用状态正确流转; 修复重复stateChange事件; TraceStep.thought正确填充
This commit is contained in:
@@ -23,8 +23,7 @@ export class MemoryStoreTool implements IMetonaTool {
|
||||
content: { type: 'string', description: 'The memory content to store' },
|
||||
type: { type: 'string', description: 'Memory type: "episodic" (events), "semantic" (knowledge), or "working" (task state)', enum: ['episodic', 'semantic', 'working'] },
|
||||
importance: { type: 'number', description: 'Importance score 0-1 (default 0.5)' },
|
||||
source: { type: 'string', description: 'Source identifier (default "agent")' },
|
||||
tags: { type: 'array', description: 'Tag list for categorization', items: { type: 'string', description: 'Tag' } },
|
||||
source: { type: 'string', description: 'Source of the memory', enum: ['user_input', 'tool_result', 'agent_thought', 'imported'] },
|
||||
},
|
||||
required: ['content', 'type'],
|
||||
},
|
||||
@@ -40,13 +39,12 @@ export class MemoryStoreTool implements IMetonaTool {
|
||||
const content = args.content as string;
|
||||
const type = args.type as 'episodic' | 'semantic' | 'working';
|
||||
const importance = (args.importance as number) ?? 0.5;
|
||||
const source = (args.source as string) ?? 'agent';
|
||||
const tags = (args.tags as string[]) ?? [];
|
||||
const source = (args.source as 'user_input' | 'tool_result' | 'agent_thought' | 'imported') ?? 'agent_thought';
|
||||
|
||||
const id = await this.memoryManager.store({
|
||||
type,
|
||||
content,
|
||||
source: source as 'user_input' | 'tool_result' | 'agent_thought' | 'imported',
|
||||
source,
|
||||
importance,
|
||||
sessionId: context.sessionId,
|
||||
});
|
||||
@@ -67,7 +65,7 @@ export class MemorySearchTool implements IMetonaTool {
|
||||
query: { type: 'string', description: 'Search query or keywords' },
|
||||
type: { type: 'string', description: 'Filter by memory type', enum: ['episodic', 'semantic', 'working'] },
|
||||
topK: { type: 'number', description: 'Number of results (default 5)' },
|
||||
threshold: { type: 'number', description: 'Minimum relevance score 0-1 (default 0.7)' },
|
||||
threshold: { type: 'number', description: 'Minimum importance score 0-1 (default 0.7). Filters memories by importance, not search relevance.' },
|
||||
},
|
||||
required: ['query'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user