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

Method ReadFile

adk/multiagent/deep/operator.go:34–40  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

32type LocalOperator struct{}
33
34func (l *LocalOperator) ReadFile(ctx context.Context, path string) (string, error) {
35 b, err := os.ReadFile(path)
36 if err != nil {
37 return err.Error(), nil
38 }
39 return string(b), nil
40}
41
42func (l *LocalOperator) WriteFile(ctx context.Context, path, content string) error {
43 return os.WriteFile(path, []byte(content), 0o666)

Callers 10

GetPromptTemplateFunction · 0.45
LoadDeerConfigFunction · 0.45
validateResearchReportFunction · 0.45
renderImageMethod · 0.45
runTypedFunction · 0.45
SpinMethod · 0.45
buildWorkflowFunction · 0.45
InvokeMethod · 0.45
BindRoutesFunction · 0.45
BindRoutesFunction · 0.45

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected