AS AgentScopeAPI 手册 / API Reference

SkillsBundleService

@Service public class SkillsBundleService
源码Source io/agentscope/builder/web/managed/selfhosted/SkillsBundleService.java:35–156

技能 Bundle 服务,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed.selfhosted 包。核心成员包括 bundleForSession、SkillsBundleService。

Packs agent skills into a Worker-downloadable manifest (Claude-style skills sync for self-hosted).

构造器摘要Constructor Summary

构造器Constructor说明Description
public SkillsBundleService(DataSessionService sessionService, HarnessAgentBuildService agentBuildService, UserAgentDefinitionStore store)
初始化 `SkillsBundleService` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Map<String, Object> bundleForSession(String sessionId)
设置该参数。
Builds a JSON-friendly skills bundle for the session's agent.

构造器详情Constructor Detail

SkillsBundleService

public SkillsBundleService(DataSessionService sessionService, HarnessAgentBuildService agentBuildService, UserAgentDefinitionStore store)

初始化 SkillsBundleService 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
sessionServiceDataSessionService会话服务(类型 `DataSessionService`)。The session service.
agentBuildServiceHarnessAgentBuildService智能体构建服务(类型 `HarnessAgentBuildService`)。The agent build service.
storeUserAgentDefinitionStore存储实例(类型 `UserAgentDefinitionStore`)。The store.
源码Source io/agentscope/builder/web/managed/selfhosted/SkillsBundleService.java:41–47

方法详情Method Detail

bundleForSession

public Map<String, Object> bundleForSession(String sessionId)

设置该参数。

Builds a JSON-friendly skills bundle for the session's agent.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/builder/web/managed/selfhosted/SkillsBundleService.java:50–120
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.