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

Method WriteFile

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

Source from the content-addressed store, hash-verified

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)
49 RunCommand(ctx context.Context, command []string) (*CommandOutput, error)

Callers 15

mainFunction · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
strReplaceMethod · 0.65
insertMethod · 0.65
undoEditMethod · 0.65
EditMethod · 0.65
TestLsInfoFunction · 0.65
TestReadFunction · 0.65
TestWriteFunction · 0.65
TestEditFunction · 0.65
createMockRgFunction · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by 13

TestLsInfoFunction · 0.52
TestReadFunction · 0.52
TestWriteFunction · 0.52
TestEditFunction · 0.52
createMockRgFunction · 0.52
TestGlobInfoFunction · 0.52
TestPathCleaningFunction · 0.52