AS AgentScopeAPI 手册 / API Reference
包package agentscope.model

agentscope.model

module agentscope.model

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

The model module.

源码Source agentscope/model/__init__.py:1

类Classes

AnthropicChatModel
类class
Anthropic 聊天模型,与模型服务通信并返回生成或向量化结果。
The Anthropic chat model.
ChatModelBase
类class
聊天模型抽象基类
The base class for chat models.
ChatResponse
类class
聊天模型的响应。
The response of chat models.
ChatUsage
类class
聊天用量,与模型服务通信并返回生成或向量化结果。
The usage of a chat model API invocation.
DashScopeChatModel
类class
DashScope 聊天模型,与模型服务通信并返回生成或向量化结果。
The DashScope chat model (OpenAI-compatible implementation).
DeepSeekChatModel
类class
DeepSeek 聊天模型。
The DeepSeek chat model.
FinishedReason
类class
Finished 推理,与模型服务通信并返回生成或向量化结果。
The finished reason of the model response.
GeminiChatModel
类class
Gemini 聊天模型,与模型服务通信并返回生成或向量化结果。
The Google Gemini chat model.
MiniMaxChatModel
类class
MiniMax 聊天模型,与模型服务通信并返回生成或向量化结果。
Chat model for MiniMax's Anthropic-compatible API.
ModelCard
类class
模型卡片类。
The model card class.
MoonshotChatModel
类class
Moonshot 聊天模型,与模型服务通信并返回生成或向量化结果。
The Moonshot AI chat model.
OllamaChatModel
类class
Ollama 聊天模型,与模型服务通信并返回生成或向量化结果。
The Ollama chat model.
OpenAIChatModel
类class
OpenAI 兼容聊天模型
The OpenAI Chat Completions model.
OpenAIResponseModel
类class
OpenAIResponse 模型,与模型服务通信并返回生成或向量化结果。
The OpenAI Responses API chat model.
StructuredResponse
类class
聊天模型的结构化响应。
The structured response of chat models.
VolcengineChatModel
类class
火山引擎聊天模型,与模型服务通信并返回生成或向量化结果。
The Volcengine Ark chat model.
XAIChatModel
类class
xAI 聊天模型使用官方`xai_sdk`gRPC 客户端。
The xAI chat model using the official ``xai_sdk`` gRPC client.
基于官方固定版本源码静态生成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.