接口的使用
com.agentsflex.core.model.chat.tool.ToolInterceptor
使用ToolInterceptor的程序包
程序包
说明
-
com.agentsflex.core.agent.react中ToolInterceptor的使用
类型参数类型为ToolInterceptor的com.agentsflex.core.agent.react中的字段返回变量类型为ToolInterceptor的类型的com.agentsflex.core.agent.react中的方法 -
com.agentsflex.core.model.chat.response中ToolInterceptor的使用
修饰符和类型方法说明AiMessageResponse.executeToolCallsAndGetResults(ToolInterceptor... interceptors) AiMessageResponse.executeToolCallsAndGetToolMessages(ToolInterceptor... interceptors) AiMessageResponse.getToolExecutors(ToolInterceptor... interceptors) -
com.agentsflex.core.model.chat.tool中ToolInterceptor的使用
修饰符和类型类说明class增强版工具可观测性拦截器,支持: - 全局/工具级开关 - JSON 结构化参数与结果 - 自动脱敏敏感字段 - 错误类型分类 - 类型安全结果处理修饰符和类型字段说明private static final List<ToolInterceptor>GlobalToolInterceptors.GLOBAL_INTERCEPTORSprivate List<ToolInterceptor>ToolExecutor.interceptors返回变量类型为ToolInterceptor的类型的com.agentsflex.core.model.chat.tool中的方法修饰符和类型方法说明private List<ToolInterceptor>ToolExecutor.buildInterceptorChain(List<ToolInterceptor> userInterceptors) static List<ToolInterceptor>GlobalToolInterceptors.getInterceptors()ToolExecutor.getInterceptors()修饰符和类型方法说明static voidGlobalToolInterceptors.addInterceptor(ToolInterceptor interceptor) voidToolExecutor.addInterceptor(ToolInterceptor interceptor) 动态添加拦截器(添加到链尾)类型变量类型为ToolInterceptor的com.agentsflex.core.model.chat.tool中的方法参数修饰符和类型方法说明voidToolExecutor.addInterceptors(List<ToolInterceptor> interceptors) private List<ToolInterceptor>ToolExecutor.buildInterceptorChain(List<ToolInterceptor> userInterceptors) 类型变量类型为ToolInterceptor的com.agentsflex.core.model.chat.tool中的构造器参数