ModelCallInput
public record ModelCallInput( List<Msg> messages, List<ToolSchema> tools, GenerateOptions options, Model model)
源码Source
io/agentscope/core/middleware/ModelCallInput.java:32–38用于MiddlewareBase#onModelCall的输入上下文。位于 io.agentscope.core.middleware 包。核心成员包括 messages、tools、options、model、ModelCallInput。
Input context for MiddlewareBase#onModelCall.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
messages | List<Msg> | 消息到发送到模型。 the messages to send to the model |
tools | List<ToolSchema> | 执行工具相关操作。 the non-null tool schemas, empty when no tools are available |
options | GenerateOptions | 执行选项相关操作。 generation options |
model | Model | 模型实例到调用。 the model instance to call |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ModelCallInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options, Model model) | 初始化 `ModelCallInput` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
messages
List<Msg> messages消息到发送到模型。
the messages to send to the model
源码Source
io/agentscope/core/middleware/ModelCallInput.java:32–38tools
List<ToolSchema> tools执行工具相关操作。
the non-null tool schemas, empty when no tools are available
源码Source
io/agentscope/core/middleware/ModelCallInput.java:32–38options
GenerateOptions options执行选项相关操作。
generation options
源码Source
io/agentscope/core/middleware/ModelCallInput.java:32–38model
Model model模型实例到调用。
the model instance to call
源码Source
io/agentscope/core/middleware/ModelCallInput.java:32–38构造器详情Constructor Detail
ModelCallInput
public ModelCallInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options, Model model)
初始化 ModelCallInput 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<Msg> | 消息列表(类型 `List`)。The messages. |
tools | List<ToolSchema> | 工具列表(类型 `List`)。The tools. |
options | GenerateOptions | 选项(类型 `GenerateOptions`)。The options. |
model | Model | 模型实例(类型 `Model`)。The model. |
源码Source
io/agentscope/core/middleware/ModelCallInput.java:35–37