包package
agentscope.modelagentscope.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. |