ModelCard
public record ModelCard( @JsonProperty("model_name") String modelName, @JsonProperty("display_name") String displayName, @JsonProperty("context_size") Integer contextSize)
源码Source
io/agentscope/core/credential/ModelCard.java:28–35承载模型卡片数据的记录类型。位于 io.agentscope.core.credential 包。核心成员包括 modelName、displayName、contextSize、ModelCard。
Description of one candidate chat model under a provider.
This is a minimal placeholder so CredentialBase#listModels() has a return type.
Capability flags and parameter schemas will be added as the model-discovery infrastructure
matures.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
modelName | String | 执行模型名称相关操作。 Performs the model name operation. |
displayName | String | 执行展示名称相关操作。 Performs the display name operation. |
contextSize | Integer | 执行上下文大小相关操作。 Performs the context size operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ModelCard(String modelName, String displayName, Integer contextSize) | 初始化 `ModelCard` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
modelName
String modelName执行模型名称相关操作。
Performs the model name operation.
源码Source
io/agentscope/core/credential/ModelCard.java:28–35displayName
String displayName执行展示名称相关操作。
Performs the display name operation.
源码Source
io/agentscope/core/credential/ModelCard.java:28–35contextSize
Integer contextSize执行上下文大小相关操作。
Performs the context size operation.
源码Source
io/agentscope/core/credential/ModelCard.java:28–35构造器详情Constructor Detail
ModelCard
public ModelCard(String modelName, String displayName, Integer contextSize)
初始化 ModelCard 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
modelName | String | 模型名称(类型 `String`)。The model name. |
displayName | String | 展示名称(类型 `String`)。The display name. |
contextSize | Integer | 上下文大小(类型 `Integer`)。The context size. |
源码Source
io/agentscope/core/credential/ModelCard.java:33–34