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

ChoiceQuestion

class ChoiceQuestion(BaseModel)
源码Source agentscope/classifier/_question.py:35–47

选项问题,与模型服务通信并返回生成或向量化结果。位于 agentscope.classifier 包。

A question that selects one named alternative. Declared in agentscope.classifier.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
model_config—
模型配置字段。
ConfigDict(extra='forbid')
typeLiteral['choice']
类型字段。
'choice'
criteriadict[str, str | None]
标准字段。
Field(min_length=1)
instructionsstr | None
指令字段。
None

属性详情Attribute Detail

model_config

 = ConfigDict(extra='forbid')

模型配置字段。

The model config field.

源码Source agentscope/classifier/_question.py:38

type

Literal['choice'] = 'choice'

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

The type field.

源码Source agentscope/classifier/_question.py:40

criteria

dict[str, str | None] = Field(min_length=1)

标准字段。声明为 dict[str, str | None]。

The criteria field.

源码Source agentscope/classifier/_question.py:43

instructions

str | None = None

指令字段。声明为 str | None。

The instructions field.

源码Source agentscope/classifier/_question.py:46
基于官方固定版本源码静态生成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.