chatsky_ui.schemas package

chatsky_ui.schemas.pagination module

class chatsky_ui.schemas.pagination.Pagination(*, page: int = 1, limit: int = 100000)[source]

Bases: BaseModel

limit: int
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'limit': Query(100000), 'page': Query(1)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

offset() int[source]
page: int

chatsky_ui.schemas.preset module

class chatsky_ui.schemas.preset.Preset(*, wait_time: float, end_status: Literal['success', 'failure', 'loop'])[source]

Bases: BaseModel

end_status: Literal['success', 'failure', 'loop']
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'end_status': FieldInfo(annotation=Literal['success', 'failure', 'loop'], required=True), 'wait_time': FieldInfo(annotation=float, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

wait_time: float

chatsky_ui.schemas.process_status module

class chatsky_ui.schemas.process_status.Status(value)[source]

Bases: Enum

An enumeration.

ALIVE = 'alive'
COMPLETED = 'completed'
FAILED = 'failed'
FAILED_WITH_UNEXPECTED_CODE = 'failed with unexpected returncode'
NULL = 'null'
RUNNING = 'running'
STOPPED = 'stopped'