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

Function NewCachedTool

pkg/tools/cache.go:471–476  ·  view source on GitHub ↗

NewCachedTool 创建带缓存的工具

(tool Tool, cache *ToolCache)

Source from the content-addressed store, hash-verified

469
470// NewCachedTool 创建带缓存的工具
471func NewCachedTool(tool Tool, cache *ToolCache) *CachedTool {
472 return &CachedTool{
473 tool: tool,
474 cache: cache,
475 }
476}
477
478// Name 实现 Tool 接口
479func (ct *CachedTool) Name() string {

Callers 3

mainFunction · 0.92
TestCachedTool_ExecuteFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCachedTool_ExecuteFunction · 0.68