MCPcopy Create free account
hub / github.com/cloudwego/eino-ext / ReadFile

Method ReadFile

components/tool/commandline/operator.go:45–45  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

43// Operator defines the interface for file operations
44type Operator interface {
45 ReadFile(ctx context.Context, path string) (string, error)
46 WriteFile(ctx context.Context, path string, content string) error
47 IsDirectory(ctx context.Context, path string) (bool, error)
48 Exists(ctx context.Context, path string) (bool, error)

Callers 15

imageToolCallFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
imageToolCallFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
imageToolCallFunction · 0.65
mainFunction · 0.65

Implementers 3

pyOperatorcomponents/tool/commandline/pyexecutor
MockFileOperatorcomponents/tool/commandline/editor_tes
DockerSandboxcomponents/tool/commandline/sandbox/sa

Calls

no outgoing calls

Tested by 2

TestWriteFunction · 0.52
TestEditFunction · 0.52