AS AgentScopeAPI 手册 / API Reference
类class agentscope.classifier

ScoreAnswer

@dataclass
class ScoreAnswer(DictMixin)
源码Source agentscope/classifier/_response.py:45–69

分数答案,与模型服务通信并返回生成或向量化结果。位于 agentscope.classifier 包,继承自 DictMixin。

An expected score and its probability distribution. Declared in agentscope.classifier. Extends DictMixin.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
scorefloat
分数字段。
—
confidencefloat
置信度字段。
—
legenddict[int, JSONSerializableObject]
`legend` 字段。
—
probabilitiesdict[int, float]
`probabilities` 字段。
—
typeLiteral['score_answer']
类型字段。
field(default_factory=lambda: 'score_answer')

属性详情Attribute Detail

score

float

分数字段。声明为 float。

The score field.

源码Source agentscope/classifier/_response.py:48

confidence

float

置信度字段。声明为 float。

The confidence field.

源码Source agentscope/classifier/_response.py:51

legend

dict[int, JSONSerializableObject]

legend 字段。声明为 dict[int, JSONSerializableObject]。

The legend field.

源码Source agentscope/classifier/_response.py:54

probabilities

dict[int, float]

probabilities 字段。声明为 dict[int, float]。

The probabilities field.

源码Source agentscope/classifier/_response.py:60

type

Literal['score_answer'] = field(default_factory=lambda: 'score_answer')

类型字段。声明为 Literal['score_answer']。

The type field.

源码Source agentscope/classifier/_response.py: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.