AS AgentScopeAPI 手册 / API Reference

AgentInfo

public record AgentInfo( String id, String name, String description, Map<String, Boolean> capabilities, String className)
源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

承载智能体信息数据的记录类型。位于 io.agentscope.examples.copilotkit.model 包。核心成员包括 id、name、description、capabilities、className、withIdentity。

A record in io.agentscope.examples.copilotkit.model that carries data used when components talks to model services and returns generated or embedded output. Declared in io.agentscope.examples.copilotkit.model.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
idString
执行标识相关操作。
Performs the id operation.
nameString
执行名称相关操作。
Performs the name operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
capabilitiesMap<String, Boolean>
执行能力相关操作。
Performs the capabilities operation.
classNameString
执行类名称相关操作。
Performs the class name operation.

方法摘要Method Summary

方法Method说明Description
public AgentInfo withIdentity(String name, String description, String className)
执行使用身份相关操作。
Performs the with identity operation.

记录组件详情Record Component Detail

id

String id

执行标识相关操作。

Performs the id operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

name

String name

执行名称相关操作。

Performs the name operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

capabilities

Map<String, Boolean> capabilities

执行能力相关操作。

Performs the capabilities operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

className

String className

执行类名称相关操作。

Performs the class name operation.

源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53

方法详情Method Detail

withIdentity

public AgentInfo withIdentity(String name, String description, String className)

执行使用身份相关操作。

Performs the with identity operation.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
descriptionString描述(类型 `String`)。The description.
classNameString类名称(类型 `String`)。The class name.
返回Returns AgentInfo
返回AgentInfo。Returns agent info.
源码Source io/agentscope/examples/copilotkit/model/CopilotKitModels.java:50–52
基于官方固定版本源码静态生成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.