Expand description
Proxy Tool Executor Trait
简化的代理工具接口 - 外部只需实现一个 trait
§设计原则
实现者必须同时提供:
exec()- 执行逻辑tool_definitions()- 工具定义(LLM 看到的)
这样每个 Executor 都知道自己的工具定义,紧密绑定。
Structs§
Traits§
- Proxy
Tool Executor - 代理工具执行器 trait
Proxy Tool Executor Trait
简化的代理工具接口 - 外部只需实现一个 trait
实现者必须同时提供:
exec() - 执行逻辑tool_definitions() - 工具定义(LLM 看到的)这样每个 Executor 都知道自己的工具定义,紧密绑定。