Builder
public static final class Builder
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:34–67构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.judge.jev 包。核心成员包括 state、model、questions、question、build。
A class in io.agentscope.extensions.judge.jev that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.extensions.judge.jev.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder state(Object state) | 设置状态。 Performs the state operation. |
public Builder model(String model) | 设置模型。 Performs the model operation. |
public Builder questions(Map<String, Question> questions) | 设置该配置项。 Performs the questions operation. |
public Builder question(String id, Question question) | 设置问题。 Performs the question operation. |
public SystemOneRequest build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
state
public Builder state(Object state)
设置状态。
Performs the state operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
state | Object | 状态对象(类型 `Object`)。The state. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:39–42model
public Builder model(String model)
设置模型。
Performs the model operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
model | String | 模型实例(类型 `String`)。The model. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:44–47questions
public Builder questions(Map<String, Question> questions)
设置该配置项。
Performs the questions operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
questions | Map<String, Question> | questions(类型 `Map`)。The questions. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:49–55question
public Builder question(String id, Question question)
设置问题。
Performs the question operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
question | Question | 问题(类型 `Question`)。The question. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:57–62build
public SystemOneRequest build()
构建并返回最终实例。
Creates and returns an instance.
SystemOneRequest返回SystemOneRequest。Returns system one request.
源码Source
io/agentscope/extensions/judge/jev/SystemOneRequest.java:64–66