Documentation
¶
Overview ¶
Package agentscript 提供 Agent 内置工具所需的脚本能力: 创建脚本(create_script)、更新脚本信息(update_script),以及脚本 io_schema.json 的默认模板与清洗逻辑。
这些实现只依赖 tool 包定义的接口与业务服务,由 container 包在 DI 中装配。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreator ¶
func NewCreator( workflowSvc interfaces.WorkflowService, projectRepo interfaces.ProjectRepository, containerRepo interfaces.ContainerRepository, cfg *config.Config, ) runtimecontext.ScriptCreator
NewCreator 构建「创建脚本」执行器并注入内置工具体系。
返回值同时实现 runtimecontext.ScriptCreator(create_script)与 runtimecontext.ScriptUpdater (update_script):创建与更新共享同一份脚本业务服务依赖,故由同一个对象承载 (Options.ScriptCreator 一处注入即可)。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.