AS AgentScopeAPI 手册 / API Reference

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
stateObject状态对象(类型 `Object`)。The state.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/SystemOneRequest.java:39–42

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/judge/jev/SystemOneRequest.java:44–47

questions

public Builder questions(Map<String, Question> questions)

设置该配置项。

Performs the questions operation.

参数Parameters
名称Name类型Type说明Description
questionsMap<String, Question>questions(类型 `Map`)。The questions.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/SystemOneRequest.java:49–55

question

public Builder question(String id, Question question)

设置问题。

Performs the question operation.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
questionQuestion问题(类型 `Question`)。The question.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/SystemOneRequest.java:57–62

build

public SystemOneRequest build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns SystemOneRequest
返回SystemOneRequest。Returns system one request.
源码Source io/agentscope/extensions/judge/jev/SystemOneRequest.java:64–66
基于官方固定版本源码静态生成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.