guidellm.scheduler.constraints.args
Kind-discriminated constraint argument schemas for benchmark configuration.
ConstraintArgs
Bases: PydanticClassRegistryMixin['ConstraintArgs']
Base class for constraint configuration arguments.
Uses PydanticClassRegistryMixin to enable polymorphic deserialization based on the kind field. Each registered subclass represents a specific constraint type with its own parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
schema_discriminator | str | Field name for polymorphic deserialization |
Source code in src/guidellm/scheduler/constraints/args.py
constraint_key property
The key to use when inserting into the constraints dict.
Defaults to kind, but subclasses may override if the factory registry key differs from the args kind.
Returns:
| Type | Description |
|---|---|
str | Registry key for this constraint type |
__pydantic_schema_base_type__() classmethod
Return base type for polymorphic validation hierarchy.
Returns:
| Type | Description |
|---|---|
type[ConstraintArgs] | Base ConstraintArgs class for schema validation |