MCPcopy
hub / github.com/the-open-agent/openagent / wrapSnapshotBuiltin

Function wrapSnapshotBuiltin

object/snapshot_tool.go:32–39  ·  view source on GitHub ↗
(owner string, builtin tool.BuiltinTool)

Source from the content-addressed store, hash-verified

30}
31
32func wrapSnapshotBuiltin(owner string, builtin tool.BuiltinTool) tool.BuiltinTool {
33 switch builtin.GetName() {
34 case "local_file_write", "local_file_move":
35 return &snapshotBuiltinTool{owner: owner, inner: builtin}
36 default:
37 return builtin
38 }
39}
40
41func (t *snapshotBuiltinTool) GetName() string {
42 return t.inner.GetName()

Callers 3

testToolWithLoaderFunction · 0.85

Calls 1

GetNameMethod · 0.65

Tested by

no test coverage detected