AgentDefinition
@JsonInclude(JsonInclude.Include.NON_NULL) public record AgentDefinition( 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, String scope, String ownerId, long createdAt, long updatedAt, List<AgentShareGrant> shares, String runAs, String forkOf, String workspacePath, String sandboxMode, String sandboxScope, Integer version, Long archivedAt, Map<String, Object> metadata, String tierForCurrentUser)
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102承载智能体定义数据的记录类型。位于 io.agentscope.builder.web.catalog 包。核心成员包括 id、name、description、system、model、maxIters。
API representation of an agent definition visible to the current user.
Definition fields (system, tools, mcpServers, skills) are the
versioned Agent body — see docs/API_REFACTOR.md.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
name | String | 执行名称相关操作。 Performs the name operation. |
description | String | 执行 `description` 方法。 Performs the description operation. |
system | String | 执行系统相关操作。 Performs the system operation. |
model | String | 执行模型相关操作。 Performs the model operation. |
maxIters | Integer | 执行最大迭代次数相关操作。 Performs the max iters operation. |
tools | List<AgentToolset> | 执行工具相关操作。 Performs the tools operation. |
mcpServers | List<McpServerSpec> | 执行 `mcpServers` 方法。 Performs the mcp servers operation. |
skills | List<SkillRef> | 执行技能相关操作。 Performs the skills operation. |
multiagent | MultiagentSpec | 执行多智能体相关操作。 Performs the multiagent operation. |
identityName | String | 执行身份名称相关操作。 Performs the identity name operation. |
identityEmoji | String | 执行 `identityEmoji` 方法。 Performs the identity emoji operation. |
groupChatMentionPatterns | List<String> | 执行 `groupChatMentionPatterns` 方法。 Performs the group chat mention patterns operation. |
groupChatRequireMention | Boolean | 执行 `groupChatRequireMention` 方法。 Performs the group chat require mention operation. |
scope | String | 执行范围相关操作。 Performs the scope operation. |
ownerId | String | 执行所有者标识相关操作。 Performs the owner id operation. |
createdAt | long | 执行已创建 At相关操作。 Performs the created at operation. |
updatedAt | long | 执行已更新 At相关操作。 Performs the updated at operation. |
shares | List<AgentShareGrant> | 执行 `shares` 方法。 Performs the shares operation. |
runAs | String | 运行As。 Runs the as. |
forkOf | String | 执行 `forkOf` 方法。 Performs the fork of operation. |
workspacePath | String | 执行工作区路径相关操作。 Performs the workspace path operation. |
sandboxMode | String | 执行沙箱模式相关操作。 Performs the sandbox mode operation. |
sandboxScope | String | 执行沙箱范围相关操作。 Performs the sandbox scope operation. |
version | Integer | 执行版本相关操作。 Performs the version operation. |
archivedAt | Long | 执行 `archivedAt` 方法。 Performs the archived at operation. |
metadata | Map<String, Object> | 执行元数据相关操作。 Performs the metadata operation. |
tierForCurrentUser | String | 执行 `tierForCurrentUser` 方法。 Performs the tier for current user operation. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
SCOPE_GLOBALstaticfinal | String | 范围 GLOBAL字段。 The SCOPE GLOBAL field. |
SCOPE_USERstaticfinal | String | 范围用户字段。 The SCOPE USER field. |
RUN_AS_INVOKERstaticfinal | String | 运行 AS INVOKER字段。 The RUN AS INVOKER field. |
RUN_AS_OWNERstaticfinal | String | 运行 AS 所有者字段。 The RUN AS OWNER field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentDefinition withTierForCurrentUser(String tier) | 执行 `withTierForCurrentUser` 方法。 Returns a copy with `tierForCurrentUser` replaced. |
记录组件详情Record Component Detail
id
String id执行标识相关操作。
Performs the id operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102name
String name执行名称相关操作。
Performs the name operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102description
String description执行 description 方法。
Performs the description operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102system
String system执行系统相关操作。
Performs the system operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102model
String model执行模型相关操作。
Performs the model operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102maxIters
Integer maxIters执行最大迭代次数相关操作。
Performs the max iters operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102tools
List<AgentToolset> tools执行工具相关操作。
Performs the tools operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102mcpServers
List<McpServerSpec> mcpServers执行 mcpServers 方法。
Performs the mcp servers operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102skills
List<SkillRef> skills执行技能相关操作。
Performs the skills operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102multiagent
MultiagentSpec multiagent执行多智能体相关操作。
Performs the multiagent operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102identityName
String identityName执行身份名称相关操作。
Performs the identity name operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102identityEmoji
String identityEmoji执行 identityEmoji 方法。
Performs the identity emoji operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102groupChatMentionPatterns
List<String> groupChatMentionPatterns执行 groupChatMentionPatterns 方法。
Performs the group chat mention patterns operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102groupChatRequireMention
Boolean groupChatRequireMention执行 groupChatRequireMention 方法。
Performs the group chat require mention operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102scope
String scope执行范围相关操作。
Performs the scope operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102ownerId
String ownerId执行所有者标识相关操作。
Performs the owner id operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102createdAt
long createdAt执行已创建 At相关操作。
Performs the created at operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102updatedAt
long updatedAt执行已更新 At相关操作。
Performs the updated at operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102runAs
String runAs运行As。
Runs the as.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102forkOf
String forkOf执行 forkOf 方法。
Performs the fork of operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102workspacePath
String workspacePath执行工作区路径相关操作。
Performs the workspace path operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102sandboxMode
String sandboxMode执行沙箱模式相关操作。
Performs the sandbox mode operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102sandboxScope
String sandboxScope执行沙箱范围相关操作。
Performs the sandbox scope operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102version
Integer version执行版本相关操作。
Performs the version operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102archivedAt
Long archivedAt执行 archivedAt 方法。
Performs the archived at operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102metadata
Map<String, Object> metadata执行元数据相关操作。
Performs the metadata operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102tierForCurrentUser
String tierForCurrentUser执行 tierForCurrentUser 方法。
Performs the tier for current user operation.
io/agentscope/builder/web/catalog/AgentDefinition.java:33–102字段详情Field Detail
SCOPE_GLOBAL
public static final String SCOPE_GLOBAL
范围 GLOBAL字段。声明为 public static final String SCOPE_GLOBAL。
The SCOPE GLOBAL field.
io/agentscope/builder/web/catalog/AgentDefinition.java:64SCOPE_USER
public static final String SCOPE_USER
范围用户字段。声明为 public static final String SCOPE_USER。
The SCOPE USER field.
io/agentscope/builder/web/catalog/AgentDefinition.java:65RUN_AS_INVOKER
public static final String RUN_AS_INVOKER
运行 AS INVOKER字段。声明为 public static final String RUN_AS_INVOKER。
The RUN AS INVOKER field.
io/agentscope/builder/web/catalog/AgentDefinition.java:67RUN_AS_OWNER
public static final String RUN_AS_OWNER
运行 AS 所有者字段。声明为 public static final String RUN_AS_OWNER。
The RUN AS OWNER field.
io/agentscope/builder/web/catalog/AgentDefinition.java:68方法详情Method Detail
withTierForCurrentUser
public AgentDefinition withTierForCurrentUser(String tier)
执行 withTierForCurrentUser 方法。
Returns a copy with tierForCurrentUser replaced.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tier | String | tier(类型 `String`)。The tier. |
AgentDefinitionio/agentscope/builder/web/catalog/AgentDefinition.java:71–101