ChoiceQuestion
public record ChoiceQuestion(Object instructions, Map<String, Object> criteria) implements Question
源码Source
io/agentscope/extensions/judge/jev/ChoiceQuestion.java:29–38承载选项问题数据的记录类型。位于 io.agentscope.extensions.judge.jev 包,实现 Question。核心成员包括 instructions、criteria、ChoiceQuestion。
A closed-set selection question.
The criteria map defines the legal options and their rubrics; the model returns one chosen option and a probability for every declared option.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
instructions | Object | 执行指令相关操作。 Performs the instructions operation. |
criteria | Map<String, Object> | 执行标准相关操作。 Performs the criteria operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ChoiceQuestion(Object instructions, Map<String, Object> criteria) | 初始化 `ChoiceQuestion` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
instructions
Object instructions执行指令相关操作。
Performs the instructions operation.
源码Source
io/agentscope/extensions/judge/jev/ChoiceQuestion.java:29–38criteria
Map<String, Object> criteria执行标准相关操作。
Performs the criteria operation.
源码Source
io/agentscope/extensions/judge/jev/ChoiceQuestion.java:29–38构造器详情Constructor Detail
ChoiceQuestion
public ChoiceQuestion(Object instructions, Map<String, Object> criteria)
初始化 ChoiceQuestion 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
instructions | Object | 指令(类型 `Object`)。The instructions. |
criteria | Map<String, Object> | 标准(类型 `Map`)。The criteria. |
源码Source
io/agentscope/extensions/judge/jev/ChoiceQuestion.java:32–37