包package
io.agentscope.core.formatterio.agentscope.core.formatter
package io.agentscope.core.formatter
io.agentscope.core.formatter 属于消息·事件·格式化,统一消息模型与协议转换。 该包共收录 8 个公开类型。
io.agentscope.core.formatter belongs to the Messages, events & formatting layer and contains 8 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
Formatter | 接口interface | 请求与响应格式转换器 Formatter interface for converting between AgentScope and provider-specific formats. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AbstractBaseFormatter | 类class | 抽象基类格式化器,在智能体、模型与前端之间传递结构化消息和事件。 Abstract base formatter providing common functionality for all formatter implementations. |
FormatterException | 类class | 格式化器异常,表示执行过程中的错误。 Exception thrown when formatter encounters an error during message formatting or response parsing. |
JsonSchema | 类class | JSON 模式,在智能体、模型与前端之间传递结构化消息和事件。 JSON Schema definition for structured outputs. |
MediaUtils | 类class | Media Utils,在智能体、模型与前端之间传递结构化消息和事件。 Utility class for handling media files in multimodal content. |
ResponseFormat | 类class | 用于模型 APIs的响应格式配置。 Response format configuration for model APIs. |