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

Method IsAvailable

pkg/tools/bridge/runtime.go:96–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func (r *PythonRuntime) IsAvailable() bool {
97 _, err := exec.LookPath(r.pythonPath)
98 return err == nil
99}
100
101// SetTools 设置可用工具列表 (PTC 支持)
102func (r *PythonRuntime) SetTools(tools []string) {

Callers 5

TestRuntime_TimeoutFunction · 0.95
TestRuntime_SyntaxErrorFunction · 0.95
checkPythonAiohttpFunction · 0.95

Calls

no outgoing calls

Tested by 5

TestRuntime_TimeoutFunction · 0.76
TestRuntime_SyntaxErrorFunction · 0.76
checkPythonAiohttpFunction · 0.76