eino
eino copied to clipboard
内置的 reactAgent 是否可以增加钩子
背景
使用内置 reactAgent 创建一个带有 mcp tool 的 Agent,由于大模型的推理能力问题,返回的 function call 参数可能是非法的 json 格式
期望
reactAgent 创建出来的 Agent 能够让用户自定义 handle func ,在 tool node 执行前进行自定义逻辑处理
可以先加在 tool 上,或者把 react agent 拷贝出去修改下
ToolsNode 已经新增了 ToolArgumentsHandler