AS AgentScopeAPI 手册 / API Reference

StoredEntry

@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) record StoredEntry( String id, String name, String description, String system, String model, Integer maxIters, List<AgentToolset> tools, List<McpServerSpec> mcpServers, List<SkillRef> skills, MultiagentSpec multiagent, String identityName, String identityEmoji, List<String> groupChatMentionPatterns, Boolean groupChatRequireMention, long createdAt, long updatedAt, List<AgentShareGrant> shares, String runAs, String forkOf, String workspacePath, List<SkillRepositoryConfigEntry> skillRepositories, String sandboxMode, String sandboxScope, int version, Long archivedAt)
源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

承载已存储条目数据的记录类型。位于 io.agentscope.builder.web.catalog 包。核心成员包括 id、name、description、system、model、maxIters。

JSON-serializable agent definition stored per user. All fields are optional except id.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
idString
执行标识相关操作。
Performs the id operation.
nameString
执行名称相关操作。
Performs the name operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
systemString
执行系统相关操作。
Performs the system operation.
modelString
执行模型相关操作。
Performs the model operation.
maxItersInteger
执行最大迭代次数相关操作。
Performs the max iters operation.
toolsList<AgentToolset>
执行工具相关操作。
Performs the tools operation.
mcpServersList<McpServerSpec>
执行 `mcpServers` 方法。
Performs the mcp servers operation.
skillsList<SkillRef>
执行技能相关操作。
Performs the skills operation.
multiagentMultiagentSpec
执行多智能体相关操作。
Performs the multiagent operation.
identityNameString
执行身份名称相关操作。
Performs the identity name operation.
identityEmojiString
执行 `identityEmoji` 方法。
Performs the identity emoji operation.
groupChatMentionPatternsList<String>
执行 `groupChatMentionPatterns` 方法。
Performs the group chat mention patterns operation.
groupChatRequireMentionBoolean
执行 `groupChatRequireMention` 方法。
Performs the group chat require mention operation.
createdAtlong
执行已创建 At相关操作。
Performs the created at operation.
updatedAtlong
执行已更新 At相关操作。
Performs the updated at operation.
sharesList<AgentShareGrant>
执行 `shares` 方法。
Performs the shares operation.
runAsString
运行As。
Runs the as.
forkOfString
执行 `forkOf` 方法。
Performs the fork of operation.
workspacePathString
执行工作区路径相关操作。
Performs the workspace path operation.
skillRepositoriesList<SkillRepositoryConfigEntry>
执行 `skillRepositories` 方法。
Performs the skill repositories operation.
sandboxModeString
执行沙箱模式相关操作。
Performs the sandbox mode operation.
sandboxScopeString
执行沙箱范围相关操作。
Performs the sandbox scope operation.
versionint
执行版本相关操作。
Performs the version operation.
archivedAtLong
执行 `archivedAt` 方法。
Performs the archived at operation.

方法摘要Method Summary

方法Method说明Description
public AgentDefinition toDefinition(String ownerId)
设置到定义。
Performs the to definition operation.
public AgentConfigEntry toConfigEntry()
返回到配置条目。
Convert to a partial `AgentConfigEntry` for runtime agent construction.

记录组件详情Record Component Detail

id

String id

执行标识相关操作。

Performs the id operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

system

String system

执行系统相关操作。

Performs the system operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

model

String model

执行模型相关操作。

Performs the model operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

maxIters

Integer maxIters

执行最大迭代次数相关操作。

Performs the max iters operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

tools

List<AgentToolset> tools

执行工具相关操作。

Performs the tools operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

mcpServers

List<McpServerSpec> mcpServers

执行 mcpServers 方法。

Performs the mcp servers operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

skills

List<SkillRef> skills

执行技能相关操作。

Performs the skills operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

multiagent

MultiagentSpec multiagent

执行多智能体相关操作。

Performs the multiagent operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

identityName

String identityName

执行身份名称相关操作。

Performs the identity name operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

identityEmoji

String identityEmoji

执行 identityEmoji 方法。

Performs the identity emoji operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

groupChatMentionPatterns

List<String> groupChatMentionPatterns

执行 groupChatMentionPatterns 方法。

Performs the group chat mention patterns operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

groupChatRequireMention

Boolean groupChatRequireMention

执行 groupChatRequireMention 方法。

Performs the group chat require mention operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

createdAt

long createdAt

执行已创建 At相关操作。

Performs the created at operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

updatedAt

long updatedAt

执行已更新 At相关操作。

Performs the updated at operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

shares

List<AgentShareGrant> shares

执行 shares 方法。

Performs the shares operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

runAs

String runAs

运行As。

Runs the as.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

forkOf

String forkOf

执行 forkOf 方法。

Performs the fork of operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

workspacePath

String workspacePath

执行工作区路径相关操作。

Performs the workspace path operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

skillRepositories

List<SkillRepositoryConfigEntry> skillRepositories

执行 skillRepositories 方法。

Performs the skill repositories operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

sandboxMode

String sandboxMode

执行沙箱模式相关操作。

Performs the sandbox mode operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

sandboxScope

String sandboxScope

执行沙箱范围相关操作。

Performs the sandbox scope operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

version

int version

执行版本相关操作。

Performs the version operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

archivedAt

Long archivedAt

执行 archivedAt 方法。

Performs the archived at operation.

源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:72–171

方法详情Method Detail

toDefinition

public AgentDefinition toDefinition(String ownerId)

设置到定义。

Performs the to definition operation.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
返回Returns AgentDefinition
返回智能体定义。Returns agent definition.
源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:101–131

toConfigEntry

public AgentConfigEntry toConfigEntry()

返回到配置条目。

Convert to a partial AgentConfigEntry for runtime agent construction.

返回Returns AgentConfigEntry
返回AgentConfigEntry。Returns agent config entry.
源码Source io/agentscope/builder/web/catalog/UserAgentDefinitionStore.java:134–170
基于官方固定版本源码静态生成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.