Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
96
func
(r *PythonRuntime) IsAvailable() bool {
97
_, err := exec.LookPath(r.pythonPath)
98
return
err == nil
99
}
100
101
// SetTools 设置可用工具列表 (PTC 支持)
102
func
(r *PythonRuntime) SetTools(tools []string) {
Callers
5
TestPythonRuntime_Execute
Function · 0.95
TestPythonRuntime_JSONOutput
Function · 0.95
TestRuntime_Timeout
Function · 0.95
TestRuntime_SyntaxError
Function · 0.95
checkPythonAiohttp
Function · 0.95
Calls
no outgoing calls
Tested by
5
TestPythonRuntime_Execute
Function · 0.76
TestPythonRuntime_JSONOutput
Function · 0.76
TestRuntime_Timeout
Function · 0.76
TestRuntime_SyntaxError
Function · 0.76
checkPythonAiohttp
Function · 0.76