类class
agentscope.credentialMiniMaxCredential
class MiniMaxCredential(CredentialBase)
源码Source
agentscope/credential/_minimax.py:17–42MiniMax 凭证模型。位于 agentscope.credential 包,继承自 CredentialBase。核心成员包括 get_chat_model_class。
The MiniMax credential model. Declared in agentscope.credential. Extends CredentialBase.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | Literal['minimax_credential'] | 类型字段。 | 'minimax_credential' |
api_key | SecretStr | MiniMax API 密钥。 | Field(description='The MiniMax API key.') |
base_url | str | 基类 URL字段。 | Field(default=_MINIMAX_BASE_URL, description='The base URL for the MiniMax Anthropic-compatible API, use ``https://api.minimax.cn/anthropic`` for China mainland.') |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
def get_chat_model_class() -> Type['ChatModelBase'] | 返回MiniMaxChatModel 类。 Return the MiniMaxChatModel class. |
属性详情Attribute Detail
type
Literal['minimax_credential'] = 'minimax_credential'类型字段。声明为 Literal['minimax_credential']。
The type field.
源码Source
agentscope/credential/_minimax.py:20api_key
SecretStr = Field(description='The MiniMax API key.')MiniMax API 密钥。
The MiniMax API key.
源码Source
agentscope/credential/_minimax.py:23base_url
str = Field(default=_MINIMAX_BASE_URL, description='The base URL for the MiniMax Anthropic-compatible API, use ``https://api.minimax.cn/anthropic`` for China mainland.')基类 URL字段。声明为 str。
The base URL for the MiniMax Anthropic-compatible API, use https://api.minimax.cn/anthropic for China mainland.
源码Source
agentscope/credential/_minimax.py:28方法详情Method Detail
get_chat_model_class
def get_chat_model_class() -> Type['ChatModelBase']
返回MiniMaxChatModel 类。
Return the MiniMaxChatModel class.
Type['ChatModelBase']
返回类型['ChatModelBase']。Returns type chat model base.
源码Source
agentscope/credential/_minimax.py:38–42