@Preview(value="3.8.1") public class ToolRetryInterceptor extends java.lang.Object implements ReActInterceptor
为工具调用提供韧性支持:包含物理层面的线性退避重试,以及逻辑层面的参数错误自愈反馈。
| 构造器和说明 |
|---|
ToolRetryInterceptor() |
ToolRetryInterceptor(int maxRetries,
long retryDelayMs) |
| 限定符和类型 | 方法和说明 |
|---|---|
ToolResult |
interceptTool(ToolRequest req,
ToolChain chain)
拦截工具调用
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAction, onAgentEnd, onAgentStart, onModelEnd, onModelStart, onObservation, onPlan, onReason, onThoughtinterceptCall, interceptStream, onPreparepublic ToolRetryInterceptor(int maxRetries,
long retryDelayMs)
public ToolRetryInterceptor()
public ToolResult interceptTool(ToolRequest req, ToolChain chain) throws java.lang.Throwable
ToolInterceptorinterceptTool 在接口中 ToolInterceptorreq - 请求chain - 拦截链java.lang.Throwable