AS AgentScopeAPI 手册 / API Reference

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
messagesList<Msg>
消息到发送到模型。
the messages to send to the model
toolsList<ToolSchema>
执行工具相关操作。
the non-null tool schemas, empty when no tools are available
optionsGenerateOptions
执行选项相关操作。
generation options
modelModel
模型实例到调用。
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–38

tools

List<ToolSchema> tools

执行工具相关操作。

the non-null tool schemas, empty when no tools are available

源码Source io/agentscope/core/middleware/ModelCallInput.java:32–38

options

GenerateOptions options

执行选项相关操作。

generation options

源码Source io/agentscope/core/middleware/ModelCallInput.java:32–38

model

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
messagesList<Msg>消息列表(类型 `List`)。The messages.
toolsList<ToolSchema>工具列表(类型 `List`)。The tools.
optionsGenerateOptions选项(类型 `GenerateOptions`)。The options.
modelModel模型实例(类型 `Model`)。The model.
源码Source io/agentscope/core/middleware/ModelCallInput.java:35–37
基于官方固定版本源码静态生成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.