Builder
public static class Builder
源码Source
io/agentscope/core/studio/pojo/UserInputMetadata.java:76–99构建器,用于构建并配置目标实例。位于 io.agentscope.core.studio.pojo 包。核心成员包括 source、requestId、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 source(String source) | 设置来源。 Performs the source operation. |
public Builder requestId(String requestId) | 设置请求标识。 Performs the request id operation. |
public Builder structuredInput(Map<String, Object> structuredInput) | 设置结构化输入。 Performs the structured input operation. |
public UserInputMetadata build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
source
public Builder source(String source)
设置来源。
Performs the source operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
source | String | 来源(类型 `String`)。The source. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/UserInputMetadata.java:81–84requestId
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/UserInputMetadata.java:86–89structuredInput
public Builder structuredInput(Map<String, Object> structuredInput)
设置结构化输入。
Performs the structured input operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
structuredInput | Map<String, Object> | 结构化输入(类型 `Map`)。The structured input. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/core/studio/pojo/UserInputMetadata.java:91–94build
public UserInputMetadata build()
构建并返回最终实例。
Creates and returns an instance.
UserInputMetadata返回UserInputMetadata。Returns user input metadata.
源码Source
io/agentscope/core/studio/pojo/UserInputMetadata.java:96–98