AS AgentScopeAPI 手册 / API Reference

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
modelNameString
执行模型名称相关操作。
Performs the model name operation.
displayNameString
执行展示名称相关操作。
Performs the display name operation.
contextSizeInteger
执行上下文大小相关操作。
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–35

displayName

String displayName

执行展示名称相关操作。

Performs the display name operation.

源码Source io/agentscope/core/credential/ModelCard.java:28–35

contextSize

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
modelNameString模型名称(类型 `String`)。The model name.
displayNameString展示名称(类型 `String`)。The display name.
contextSizeInteger上下文大小(类型 `Integer`)。The context size.
源码Source io/agentscope/core/credential/ModelCard.java:33–34
基于官方固定版本源码静态生成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.