yuangs 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,27 @@ import { StreamMarkdownRenderer } from '../utils/renderer';
2
2
  export declare class AgentRuntime {
3
3
  private context;
4
4
  private executionId;
5
+ private readonly maxTurns;
6
+ private readonly readOnlyTools;
5
7
  constructor(initialContext: any);
6
8
  run(userInput: string, mode?: "chat" | "command", onChunk?: (chunk: string) => void, model?: string, renderer?: StreamMarkdownRenderer): Promise<void>;
9
+ private prepareRenderer;
10
+ private buildPrompt;
11
+ private callLLM;
12
+ private handleLLMError;
13
+ private buildAction;
14
+ private handleAnswer;
15
+ private verifyAckCausality;
16
+ private passGovernance;
17
+ private recordKnowledgeGraphEdge;
18
+ private checkExecutionBlock;
19
+ private executeAction;
20
+ private handleSuccessfulExecution;
21
+ private handleFailedExecution;
22
+ /**
23
+ * 语义完成检测:输出是否已经是直接答案
24
+ * 用于防止 AI 在已经获取答案后继续无意义地查询
25
+ */
26
+ private isSemanticComplete;
27
+ private learnFromExecution;
7
28
  }