AS AgentScopeAPI 手册 / API Reference
类class agentscope.credential

VolcengineCredential

class VolcengineCredential(CredentialBase)
源码Source agentscope/credential/_volcengine.py:16–42

火山引擎凭证模型。位于 agentscope.credential 包,继承自 CredentialBase。核心成员包括 get_chat_model_class。

The Volcengine credential model. Declared in agentscope.credential. Extends CredentialBase.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
model_config—
模型配置字段。
ConfigDict(title='Volcengine Ark API')
typeLiteral['volcengine_credential']
类型字段。
'volcengine_credential'
api_keySecretStr
API 键字段。
Field(description='The Volcengine Ark API key.')
base_urlstr
基类 URL字段。
Field(default=_VOLCENGINE_BASE_URL, description='The base URL for the Volcengine Ark API.')

方法摘要Method Summary

方法Method说明Description
def get_chat_model_class() -> Type['ChatModelBase']
返回VolcengineChatModel 类。
Return the VolcengineChatModel class.

属性详情Attribute Detail

model_config

 = ConfigDict(title='Volcengine Ark API')

模型配置字段。

Volcengine Ark API

源码Source agentscope/credential/_volcengine.py:19

type

Literal['volcengine_credential'] = 'volcengine_credential'

类型字段。声明为 Literal['volcengine_credential']。

The type field.

源码Source agentscope/credential/_volcengine.py:23

api_key

SecretStr = Field(description='The Volcengine Ark API key.')

API 键字段。声明为 SecretStr。

The Volcengine Ark API key.

源码Source agentscope/credential/_volcengine.py:26

base_url

str = Field(default=_VOLCENGINE_BASE_URL, description='The base URL for the Volcengine Ark API.')

基类 URL字段。声明为 str。

The base URL for the Volcengine Ark API.

源码Source agentscope/credential/_volcengine.py:31

方法详情Method Detail

get_chat_model_class

def get_chat_model_class() -> Type['ChatModelBase']

返回VolcengineChatModel 类。

Return the VolcengineChatModel class.

返回Returns Type['ChatModelBase']
返回类型['ChatModelBase']。Returns type chat model base.
源码Source agentscope/credential/_volcengine.py:38–42

继承成员Inherited Members

基于官方固定版本源码静态生成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.