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

io.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.

所属构件Artifacts agentscope-core

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