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

Function NewRuntime

pkg/skills/runtime.go:30–35  ·  view source on GitHub ↗

NewRuntime 创建运行时

(loader *SkillLoader, sb sandbox.Sandbox)

Source from the content-addressed store, hash-verified

28
29// NewRuntime 创建运行时
30func NewRuntime(loader *SkillLoader, sb sandbox.Sandbox) *Runtime {
31 return &Runtime{
32 loader: loader,
33 sandbox: sb,
34 }
35}
36
37// Execute 按名称执行一个可执行 Skill。
38// params 作为环境变量传入脚本(键会被转换为大写,并加上 SKILL_PARAM_ 前缀)。

Callers 1

buildToolContextMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected