BaseLongRunningTool 长时运行工具的基础实现 可以嵌入到具体工具中
| 301 | // BaseLongRunningTool 长时运行工具的基础实现 |
| 302 | // 可以嵌入到具体工具中 |
| 303 | type BaseLongRunningTool struct { |
| 304 | BaseTool |
| 305 | |
| 306 | executor *LongRunningExecutor |
| 307 | } |
| 308 | |
| 309 | // NewBaseLongRunningTool 创建基础长时运行工具 |
| 310 | func NewBaseLongRunningTool(name, description string, executor *LongRunningExecutor) *BaseLongRunningTool { |
nothing calls this directly
no outgoing calls
no test coverage detected