AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.core.credential

io.agentscope.core.credential

package io.agentscope.core.credential

io.agentscope.core.credential 属于模型与向量化,大模型接入、凭证与嵌入。 该包共收录 8 个公开类型。

Provider credentials for model authentication.

io.agentscope.core.credential.CredentialBase carries the id field and exposes getChatModelClass() (the consuming io.agentscope.core.model.ChatModelBase subclass) plus listModels() (model catalog discovery). Concrete subclasses cover DeepSeek, Kimi, and xAI. Credentials whose Java model class is not yet implemented throw UnsupportedOperationException from getChatModelClass() while still round-tripping through JSON for storage compatibility.

所属构件Artifacts agentscope-core

类Classes

类型Type种类Kind说明Description
CredentialBase类class
用于模型提供者的凭证元数据。
Credential metadata for a model provider.
DeepSeekCredential类class
用于DeepSeek API的凭证。
Credential for the DeepSeek API.
KimiCredential类class
Kimi 凭证,与模型服务通信并返回生成或向量化结果。
Credential for the Kimi (Moonshot AI) API.
XAICredential类class
用于xAI API的凭证。
Credential for the xAI API.

记录Records

类型Type种类Kind说明Description
ModelCard记录record
承载模型卡片数据的记录类型。
Description of one candidate chat model under a provider.
基于官方固定版本源码静态生成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.