AgentDescriptor
public record AgentDescriptor( String agentId, String name, String description, String type, String modelName, String sessionId, Integer maxIters)
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68承载智能体描述符数据的记录类型。位于 io.agentscope.spring.boot.admin.registry 包。核心成员包括 agentId、name、description、type、modelName、sessionId。
Lightweight projection of an Agent for inventory views.
Holds only the data safe to serialize over an admin API — no model API keys, no in-memory conversation buffers.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
agentId | String | 执行智能体标识相关操作。 Performs the agent id operation. |
name | String | 执行名称相关操作。 Performs the name operation. |
description | String | 执行 `description` 方法。 Performs the description operation. |
type | String | 执行类型相关操作。 Performs the type operation. |
modelName | String | 执行模型名称相关操作。 Performs the model name operation. |
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
maxIters | Integer | 执行最大迭代次数相关操作。 Performs the max iters operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static AgentDescriptor of(Agent agent)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68name
String name执行名称相关操作。
Performs the name operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68description
String description执行 description 方法。
Performs the description operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68type
String type执行类型相关操作。
Performs the type operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68modelName
String modelName执行模型名称相关操作。
Performs the model name operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68maxIters
Integer maxIters执行最大迭代次数相关操作。
Performs the max iters operation.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68方法详情Method Detail
of
public static AgentDescriptor of(Agent agent)
static
创建并返回实例。
Creates and returns an instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agent | Agent | 智能体(类型 `Agent`)。The agent. |
AgentDescriptor返回AgentDescriptor。Returns agent descriptor.
源码Source
io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:36–67