criterion
autogen.agentchat.contrib.agent_eval.criterion.Criterion
Criterion
A class that represents a criterion for agent evaluation.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self
is explicitly positional-only to allow self
as a field name.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
accepted_values
description
model_config
name
sub_criteria
Static Methods
parse_json_str
Create a list of Criterion objects from a json string.
Name | Description |
---|---|
criteria | Json string that represents the criteria Type: str |
write_json
Create a json string from a list of Criterion objects.
Name | Description |
---|---|
criteria | A list of Criterion objects. |