@Preview(value="3.8.1") public class SummarizationInterceptor extends java.lang.Object implements ReActInterceptor
确保 Action-Observation 原子对齐,并显式保留执行计划(Plans)以维持逻辑连贯性。
| 构造器和说明 |
|---|
SummarizationInterceptor() |
SummarizationInterceptor(int maxMessages) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onObservation(ReActTrace trace,
java.lang.String toolName,
java.lang.String result)
观察节点:工具执行返回结果 (Observation) 后触发
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAction, onAgentEnd, onAgentStart, onModelEnd, onModelStart, onPlan, onReason, onThoughtinterceptCall, interceptStream, onPrepareinterceptToolpublic SummarizationInterceptor(int maxMessages)
public SummarizationInterceptor()
public void onObservation(ReActTrace trace, java.lang.String toolName, java.lang.String result)
ReActInterceptoronObservation 在接口中 ReActInterceptor