AS AgentScopeAPI 手册 / API Reference

ChoiceAnswer

public record ChoiceAnswer(String choice, Map<String, Double> probabilities, Double confidence) implements Answer
源码Source io/agentscope/extensions/judge/jev/ChoiceAnswer.java:22–23

承载选项答案数据的记录类型。位于 io.agentscope.extensions.judge.jev 包,实现 Answer。核心成员包括 choice、probabilities、confidence。

A selected option and its probability distribution.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
choiceString
执行选项相关操作。
Performs the choice operation.
probabilitiesMap<String, Double>
执行 `probabilities` 方法。
Performs the probabilities operation.
confidenceDouble
执行置信度相关操作。
Performs the confidence operation.

记录组件详情Record Component Detail

choice

String choice

执行选项相关操作。

Performs the choice operation.

源码Source io/agentscope/extensions/judge/jev/ChoiceAnswer.java:22–23

probabilities

Map<String, Double> probabilities

执行 probabilities 方法。

Performs the probabilities operation.

源码Source io/agentscope/extensions/judge/jev/ChoiceAnswer.java:22–23

confidence

Double confidence

执行置信度相关操作。

Performs the confidence operation.

源码Source io/agentscope/extensions/judge/jev/ChoiceAnswer.java:22–23
基于官方固定版本源码静态生成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.