Builder
public static class Builder
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:99–134构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 requestId、runId、agentId、agentName、structuredInput、build。
A class in io.agentscope.core.studio.pojo that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.core.studio.pojo.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder requestId(String requestId) | 设置请求标识。 Performs the request id operation. |
public Builder runId(String runId) | 设置运行标识。 Runs the id. |
public Builder agentId(String agentId) | 设置智能体标识。 Performs the agent id operation. |
public Builder agentName(String agentName) | 设置智能体名称。 Performs the agent name operation. |
public Builder structuredInput(Object structuredInput) | 设置结构化输入。 Performs the structured input operation. |
public RequestUserInputRequest build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
requestId
public Builder requestId(String requestId)
设置请求标识。
Performs the request id operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
requestId | String | 请求标识(类型 `String`)。The request id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:106–109runId
public Builder runId(String runId)
设置运行标识。
Runs the id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runId | String | 运行标识(类型 `String`)。The run id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:111–114agentId
public Builder agentId(String agentId)
设置智能体标识。
Performs the agent id operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:116–119agentName
public Builder agentName(String agentName)
设置智能体名称。
Performs the agent name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentName | String | 智能体名称(类型 `String`)。The agent name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:121–124structuredInput
public Builder structuredInput(Object structuredInput)
设置结构化输入。
Performs the structured input operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
structuredInput | Object | 结构化输入(类型 `Object`)。The structured input. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:126–129build
public RequestUserInputRequest build()
构建并返回最终实例。
Creates and returns an instance.
RequestUserInputRequest返回RequestUserInputRequest。Returns request user input request.
源码Source
io/agentscope/core/studio/pojo/RequestUserInputRequest.java:131–133