NewCodeExecuteToolWithBridge 创建带桥接器的代码执行工具
(toolBridge *bridge.ToolBridge)
| 43 | |
| 44 | // NewCodeExecuteToolWithBridge 创建带桥接器的代码执行工具 |
| 45 | func NewCodeExecuteToolWithBridge(toolBridge *bridge.ToolBridge) *CodeExecuteTool { |
| 46 | return &CodeExecuteTool{ |
| 47 | runtimeManager: bridge.NewRuntimeManager(nil), |
| 48 | toolBridge: toolBridge, |
| 49 | bridgeURL: "http://localhost:8080", // 默认桥接 URL |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // SetBridgeURL 设置 HTTP 桥接服务器地址 |
| 54 | func (t *CodeExecuteTool) SetBridgeURL(url string) { |
no test coverage detected