MCPcopy
hub / github.com/Tencent/WeKnora / Cleanable

Interface Cleanable

internal/types/agent.go:164–166  ·  view source on GitHub ↗

Cleanable is an optional interface that tools can implement to release resources. Tools implementing this interface will have their Cleanup method called during registry cleanup (e.g., at the end of an agent session).

Source from the content-addressed store, hash-verified

162// Tools implementing this interface will have their Cleanup method called during
163// registry cleanup (e.g., at the end of an agent session).
164type Cleanable interface {
165 Cleanup(ctx context.Context)
166}
167
168// ToolResult represents the result of a tool execution
169type ToolResult struct {

Implementers 10

ResourceCleanerinternal/container/cleanup.go
LocalSandboxinternal/sandbox/local.go
DefaultManagerinternal/sandbox/manager.go
disabledSandboxinternal/sandbox/manager.go
DockerSandboxinternal/sandbox/docker.go
DataAnalysisToolinternal/agent/tools/data_analysis.go
ReadSkillToolinternal/agent/tools/skill_read.go
ExecuteSkillScriptToolinternal/agent/tools/skill_execute.go
ToolRegistryinternal/agent/tools/registry.go
Managerinternal/agent/skills/manager.go

Calls

no outgoing calls

Tested by

no test coverage detected