NewMockToolContext 创建模拟工具上下文
()
| 102 | |
| 103 | // NewMockToolContext 创建模拟工具上下文 |
| 104 | func NewMockToolContext() sandbox.Sandbox { |
| 105 | return sandbox.NewMockSandbox() |
| 106 | } |
| 107 | |
| 108 | // ExecuteToolWithInput 使用指定输入执行工具 |
| 109 | func ExecuteToolWithInput(t *testing.T, tool tools.Tool, input map[string]any) map[string]any { |
no test coverage detected