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 |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
name | String | 执行名称相关操作。 Performs the name operation. |
description | String | 执行 `description` 方法。 Performs the description operation. |
capabilities | Map<String, Boolean> | 执行能力相关操作。 Performs the capabilities operation. |
className | String | 执行类名称相关操作。 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–53name
String name执行名称相关操作。
Performs the name operation.
源码Source
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53description
String description执行 description 方法。
Performs the description operation.
源码Source
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53capabilities
Map<String, Boolean> capabilities执行能力相关操作。
Performs the capabilities operation.
源码Source
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:43–53className
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 |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
description | String | 描述(类型 `String`)。The description. |
className | String | 类名称(类型 `String`)。The class name. |
AgentInfo返回AgentInfo。Returns agent info.
源码Source
io/agentscope/examples/copilotkit/model/CopilotKitModels.java:50–52