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

Method Execute

pkg/tools/bridge/runtime.go:28–28  ·  view source on GitHub ↗

Execute 执行代码

(ctx context.Context, code string, input map[string]any)

Source from the content-addressed store, hash-verified

26type CodeRuntime interface {
27 // Execute 执行代码
28 Execute(ctx context.Context, code string, input map[string]any) (*ExecutionResult, error)
29 // Language 返回支持的语言
30 Language() Language
31 // IsAvailable 检查运行时是否可用

Callers 13

CallToolMethod · 0.65
ExecuteMethod · 0.65
TestFactory_AddAndSearchFunction · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
ExecuteAsyncMethod · 0.65
ExecuteToolWithInputFunction · 0.65
ExecuteToolWithRealFSFunction · 0.65
ExecuteToolWithWorkDirFunction · 0.65
BenchmarkToolFunction · 0.65

Implementers 3

PythonRuntimepkg/tools/bridge/runtime.go
NodeJSRuntimepkg/tools/bridge/runtime.go
BashRuntimepkg/tools/bridge/runtime.go

Calls

no outgoing calls

Tested by 1

TestFactory_AddAndSearchFunction · 0.52