类 Util
java.lang.Object
com.agentsflex.core.agent.react.Util
ReAct Agent 工具函数辅助类
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static voidappendParameter(StringBuilder sb, Parameter param, int depth) 递归追加参数描述(支持 object 和 array)static StringbuildToolsDescription(List<Tool> tools) 基于工具列表生成结构化、LLM 友好的工具描述文本private static StringgetTypeLabel(Parameter param) 获取标准化的类型标签static Stringindent(int depth) 生成带缩进的空格字符串private static booleanisArrayType(String type) 判断类型是否为数组
-
构造器详细资料
-
Util
public Util()
-
-
方法详细资料
-
indent
生成带缩进的空格字符串 -
buildToolsDescription
基于工具列表生成结构化、LLM 友好的工具描述文本 -
appendParameter
递归追加参数描述(支持 object 和 array) -
isArrayType
判断类型是否为数组 -
getTypeLabel
获取标准化的类型标签
-