Builder
public static class Builder
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopeInput.java:56–67构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 messages、build。
A class in io.agentscope.extensions.model.dashscope.dto that talks to model services and returns generated or embedded output. Declared in io.agentscope.extensions.model.dashscope.dto.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder messages(List<DashScopeMessage> messages) | 设置消息。 Performs the messages operation. |
public DashScopeInput build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
messages
public Builder messages(List<DashScopeMessage> messages)
设置消息。
Performs the messages operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
messages | List<DashScopeMessage> | 消息列表(类型 `List`)。The messages. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopeInput.java:59–62build
public DashScopeInput build()
构建并返回最终实例。
Creates and returns an instance.
DashScopeInput返回DashScopeInput。Returns DashScope input.
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopeInput.java:64–66