AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:123–160

构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 model、input、parameters、endpointType、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 model(String model)
设置模型。
Performs the model operation.
public Builder input(DashScopeInput input)
设置输入。
Performs the input operation.
public Builder parameters(DashScopeParameters parameters)
设置参数。
Performs the parameters operation.
public Builder endpointType(EndpointType endpointType)
设置端点类型。
Sets the endpoint type for endpoint selection.
public DashScopeRequest build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

model

public Builder model(String model)

设置模型。

Performs the model operation.

参数Parameters
名称Name类型Type说明Description
modelString模型实例(类型 `String`)。The model.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:129–132

input

public Builder input(DashScopeInput input)

设置输入。

Performs the input operation.

参数Parameters
名称Name类型Type说明Description
inputDashScopeInput输入消息(类型 `DashScopeInput`)。The input.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:134–137

parameters

public Builder parameters(DashScopeParameters parameters)

设置参数。

Performs the parameters operation.

参数Parameters
名称Name类型Type说明Description
parametersDashScopeParameters参数(类型 `DashScopeParameters`)。The parameters.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:139–142

endpointType

public Builder endpointType(EndpointType endpointType)

设置端点类型。

Sets the endpoint type for endpoint selection.

参数Parameters
名称Name类型Type说明Description
endpointTypeEndpointType端点类型。the endpoint type
返回Returns Builder
返回当前实例,以支持链式调用。this builder
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:150–153

build

public DashScopeRequest build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns DashScopeRequest
返回DashScopeRequest。Returns DashScope request.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopeRequest.java:155–159
基于官方固定版本源码静态生成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.