类class
agentscope.classifierScoreQuestion
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') |
type | Literal['score'] | 类型字段。 | 'score' |
criteria | list[str] | 标准字段。 | Field(min_length=1) |
instructions | str | None | 指令字段。 | None |
属性详情Attribute Detail
model_config
= ConfigDict(extra='forbid')模型配置字段。
The model config field.
源码Source
agentscope/classifier/_question.py:53type
Literal['score'] = 'score'类型字段。声明为 Literal['score']。
The type field.
源码Source
agentscope/classifier/_question.py:55criteria
list[str] = Field(min_length=1)标准字段。声明为 list[str]。
The criteria field.
源码Source
agentscope/classifier/_question.py:58instructions
str | None = None指令字段。声明为 str | None。
The instructions field.
源码Source
agentscope/classifier/_question.py:61