Criterion

Criterion(**data: Any)
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.
Parameters:
NameDescription
**dataType: Any

Class Attributes

accepted_values



description



model_config



name



sub_criteria



Static Methods

parse_json_str

parse_json_str(criteria: str) -> 
Create a list of Criterion objects from a json string.
Parameters:
NameDescription
criteriaJson string that represents the criteria

Type: str

write_json

write_json(criteria) -> 
Create a json string from a list of Criterion objects.
Parameters:
NameDescription
criteriaA list of Criterion objects.