包package
io.agentscope.core.modelio.agentscope.core.model
package io.agentscope.core.model
io.agentscope.core.model 属于模型与向量化,大模型接入、凭证与嵌入。 该包共收录 29 个公开类型。
io.agentscope.core.model belongs to the Models & embeddings layer and contains 29 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
Model | 接口interface | 定义模型契约的接口。 An interface in io.agentscope.core.model that defines the contract for components that talks to model services and returns generated or embedded output. |
ModelHttpException | 接口interface | 定义模型 HTTP 异常契约的接口。 Exception contract for model providers that can expose an HTTP status code. |
ToolChoice | 接口interface | 表示工具选项行为用于大模型模型调用。 Represents the tool choice behavior for LLM model calls. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
ChatModelBase | 类class | 响应式模型抽象基类 Abstract base class for all models in the AgentScope framework. |
ChatResponse | 类class | 聊天响应,与模型服务通信并返回生成或向量化结果。 Represents a chat completion response from a language model. |
ChatUsage | 类class | 聊天用量,与模型服务通信并返回生成或向量化结果。 Represents token usage information for chat completion responses. |
ExecutionConfig | 类class | 用于超时和重试行为的统一执行配置。 Unified execution configuration for timeout and retry behavior. |
GenerateOptions | 类class | Generate 选项,保存相关配置项。 Immutable generation options for LLM models. |
ModelContextWindows | 类class | 模型上下文 Windows,与模型服务通信并返回生成或向量化结果。 Known context window sizes for popular models. |
ModelCreationContext | 类class | 模型 Creation 上下文,与模型服务通信并返回生成或向量化结果。 Provider-neutral model creation context used by `ModelRegistry` and model provider SPI
implementations. |
ModelException | 类class | 模型异常,表示执行过程中的错误。 Exception thrown when model operations fail. |
ModelProviderSupport | 类class | 模型提供者 Support,与模型服务通信并返回生成或向量化结果。 Shared helpers for model providers. |
ModelRegistry | 类class | 模型注册表,与模型服务通信并返回生成或向量化结果。 Registry for resolving `Model` instances from string identifiers (named instances or
`provider:model` patterns). |
ModelUtils | 类class | 模型 Utils,与模型服务通信并返回生成或向量化结果。 Utility class for common Model operations. |
ToolSchema | 类class | 工具模式,与模型服务通信并返回生成或向量化结果。 Immutable tool schema definition. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
CachePolicy | 枚举enum | 定义缓存策略相关取值的枚举。 Controls whether `ModelRegistry` caches models created with a
`ModelCreationContext`. |
StructuredOutputReminder | 枚举enum | 定义结构化输出 Reminder相关取值的枚举。 Configuration for how to ensure the model calls generate_response tool in structured output
mode. |