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

Method SetPythonTools

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

SetPythonTools 设置 Python 运行时的可用工具列表 (PTC 支持)

(tools []string)

Source from the content-addressed store, hash-verified

636
637// SetPythonTools 设置 Python 运行时的可用工具列表 (PTC 支持)
638func (m *RuntimeManager) SetPythonTools(tools []string) {
639 if runtime, ok := m.runtimes[LangPython].(*PythonRuntime); ok {
640 runtime.SetTools(tools)
641 }
642}
643
644// SetPythonBridgeURL 设置 Python 运行时的 HTTP 桥接服务器地址 (PTC 支持)
645func (m *RuntimeManager) SetPythonBridgeURL(url string) {

Callers 1

ensureBridgeServerMethod · 0.80

Calls 1

SetToolsMethod · 0.80

Tested by

no test coverage detected