AS AgentScopeAPI 手册 / API Reference

SessionAgentBuildSpec

public record SessionAgentBuildSpec( Integer version, String environmentId, EnvironmentDto environment, String overridesJson, List<String> memoryStoreIds, List<String> vaultIds, List<Map<String, Object>> resources)
源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

承载会话智能体构建规格数据的记录类型。位于 io.agentscope.builder.web.managed 包。核心成员包括 version、environmentId、environment、overridesJson、memoryStoreIds、vaultIds。

Runtime build parameters for a managed-session io.agentscope.harness.agent.HarnessAgent.

Cache key is (owner, agent, version, environmentId); overrides / memory / vaults / resources are applied at build time so distinct mount sets get distinct agent instances.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
versionInteger
执行版本相关操作。
Performs the version operation.
environmentIdString
执行环境标识相关操作。
Performs the environment id operation.
environmentEnvironmentDto
执行环境相关操作。
Performs the environment operation.
overridesJsonString
执行 `overridesJson` 方法。
Performs the overrides json operation.
memoryStoreIdsList<String>
执行 `memoryStoreIds` 方法。
Performs the memory store ids operation.
vaultIdsList<String>
执行 `vaultIds` 方法。
Performs the vault ids operation.
resourcesList<Map<String, Object>>
执行 `resources` 方法。
Performs the resources operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public SessionAgentBuildSpec(Integer version, String environmentId, EnvironmentDto environment, String overridesJson, List<String> memoryStoreIds, List<String> vaultIds)
初始化 `SessionAgentBuildSpec` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String cacheSuffix()
返回 `cacheSuffix` 结果。
Builds a cache/gateway suffix from the stable identity fields.

记录组件详情Record Component Detail

version

Integer version

执行版本相关操作。

Performs the version operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

environmentId

String environmentId

执行环境标识相关操作。

Performs the environment id operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

environment

EnvironmentDto environment

执行环境相关操作。

Performs the environment operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

overridesJson

String overridesJson

执行 overridesJson 方法。

Performs the overrides json operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

memoryStoreIds

List<String> memoryStoreIds

执行 memoryStoreIds 方法。

Performs the memory store ids operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

vaultIds

List<String> vaultIds

执行 vaultIds 方法。

Performs the vault ids operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

resources

List<Map<String, Object>> resources

执行 resources 方法。

Performs the resources operation.

源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:27–70

构造器详情Constructor Detail

SessionAgentBuildSpec

public SessionAgentBuildSpec(Integer version, String environmentId, EnvironmentDto environment, String overridesJson, List<String> memoryStoreIds, List<String> vaultIds)

初始化 SessionAgentBuildSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
versionInteger版本(类型 `Integer`)。The version.
environmentIdString环境标识(类型 `String`)。The environment id.
environmentEnvironmentDto环境(类型 `EnvironmentDto`)。The environment.
overridesJsonStringoverrides JSON(类型 `String`)。The overrides json.
memoryStoreIdsList<String>记忆存储 Ids(类型 `List`)。The memory store ids.
vaultIdsList<String>vault Ids(类型 `List`)。The vault ids.
源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:36–44

方法详情Method Detail

cacheSuffix

public String cacheSuffix()

返回 cacheSuffix 结果。

Builds a cache/gateway suffix from the stable identity fields.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/managed/SessionAgentBuildSpec.java:47–69
基于官方固定版本源码静态生成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.