AS AgentScopeAPI 手册 / API Reference

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
agentIdString
执行智能体标识相关操作。
Performs the agent id operation.
nameString
执行名称相关操作。
Performs the name operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
typeString
执行类型相关操作。
Performs the type operation.
modelNameString
执行模型名称相关操作。
Performs the model name operation.
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
maxItersInteger
执行最大迭代次数相关操作。
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–68

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68

type

String type

执行类型相关操作。

Performs the type operation.

源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68

modelName

String modelName

执行模型名称相关操作。

Performs the model name operation.

源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68

sessionId

String sessionId

执行会话标识相关操作。

Performs the session id operation.

源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:27–68

maxIters

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
agentAgent智能体(类型 `Agent`)。The agent.
返回Returns AgentDescriptor
返回AgentDescriptor。Returns agent descriptor.
源码Source io/agentscope/spring/boot/admin/registry/AgentDescriptor.java:36–67
基于官方固定版本源码静态生成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.