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

Struct CodeExecuteTool

pkg/tools/builtin/codeexecute.go:16–25  ·  view source on GitHub ↗

CodeExecuteTool 代码执行工具 支持 LLM 生成代码并执行,用于程序化工具调用场景

Source from the content-addressed store, hash-verified

14// CodeExecuteTool 代码执行工具
15// 支持 LLM 生成代码并执行,用于程序化工具调用场景
16type CodeExecuteTool struct {
17 runtimeManager *bridge.RuntimeManager
18 toolBridge *bridge.ToolBridge
19
20 // PTC 支持
21 httpServer *bridge.HTTPBridgeServer
22 bridgeURL string
23 serverStarted bool
24 mu sync.Mutex
25}
26
27// NewCodeExecuteTool 创建代码执行工具
28func NewCodeExecuteTool(config map[string]any) (tools.Tool, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected