类 CredentialBase
java.lang.Object
io.agentscope.core.credential.CredentialBase
- 直接已知子类:
DeepSeekCredential,KimiCredential,XAICredential
Credential metadata for a model provider.
Each credential carries the connection material (API key, base URL, host, etc.) needed by a
specific ChatModelBase subclass. Subclasses declare which model class consumes them via
getChatModelClass() and optionally enumerate the catalog of usable models via listModels().
id is an auto-generated 32-char hex string identifying this credential instance; it is
carried in JSON for round-tripping but not used for authentication itself.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract Class<? extends ChatModelBase> TheChatModelBasesubclass that consumes this credential.final StringgetId()Enumerate the candidate models available under this credential.
-
构造器详细资料
-
CredentialBase
-
-
方法详细资料
-
getId
-
getChatModelClass
TheChatModelBasesubclass that consumes this credential. Subclasses without a matching Java model implementation throwUnsupportedOperationException. -
listModels
Enumerate the candidate models available under this credential. The default implementation throwsUnsupportedOperationException; concrete model discovery is provided by a futureChatModelBase.listModelshook.
-