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

ScoreQuestion

class ScoreQuestion(BaseModel)
源码Source agentscope/classifier/_question.py:50–62

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

A question that assigns an expected score using an ordered rubric. Declared in agentscope.classifier.

属性摘要Attribute Summary

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

属性详情Attribute Detail

model_config

 = ConfigDict(extra='forbid')

模型配置字段。

The model config field.

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

type

Literal['score'] = 'score'

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

The type field.

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

criteria

list[str] = Field(min_length=1)

标准字段。声明为 list[str]。

The criteria field.

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

instructions

str | None = None

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

The instructions field.

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