类class
agentscope.classifierBinaryAnswer
@dataclass
class BinaryAnswer(DictMixin)
源码Source
agentscope/classifier/_response.py:13–22二元答案,与模型服务通信并返回生成或向量化结果。位于 agentscope.classifier 包,继承自 DictMixin。
The probability of a positive answer to a binary question. Declared in agentscope.classifier. Extends DictMixin.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
probability | float | `probability` 字段。 | — |
type | Literal['binary_answer'] | 类型字段。 | field(default_factory=lambda: 'binary_answer') |
属性详情Attribute Detail
probability
floatprobability 字段。声明为 float。
The probability field.
源码Source
agentscope/classifier/_response.py:16type
Literal['binary_answer'] = field(default_factory=lambda: 'binary_answer')类型字段。声明为 Literal['binary_answer']。
The type field.
源码Source
agentscope/classifier/_response.py:19