MCPcopy Create free account
hub / github.com/astercloud/aster / MockTool

Struct MockTool

pkg/tools/cache_test.go:11–16  ·  view source on GitHub ↗

MockTool 模拟工具

Source from the content-addressed store, hash-verified

9
10// MockTool 模拟工具
11type MockTool struct {
12 name string
13 description string
14 executeFunc func(context.Context, map[string]any, *ToolContext) (any, error)
15 callCount int
16}
17
18func (m *MockTool) Name() string {
19 return m.name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected