AS AgentScopeAPI 手册 / API Reference

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
instructionsObject
执行指令相关操作。
Performs the instructions operation.
criteriaMap<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–38

criteria

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
instructionsObject指令(类型 `Object`)。The instructions.
criteriaMap<String, Object>标准(类型 `Map`)。The criteria.
源码Source io/agentscope/extensions/judge/jev/ChoiceQuestion.java:32–37
基于官方固定版本源码静态生成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.