Idto

Classes

class arshai.core.interfaces.idto.IDTO(**data)[source]

Bases: BaseModel

A base class for all DTOs

class Config[source]

Bases: object

allow_mutation = False
validate_assignment = True
arbitrary_types_allowed = True
smart_union = True
model_config: ClassVar[ConfigDict] = {'allow_mutation': False, 'arbitrary_types_allowed': True, 'smart_union': True, 'validate_assignment': True}

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

class arshai.core.interfaces.idto.IStreamDTO[source]

Bases: TypedDict

A base class for all stream DTOs

class Config[source]

Bases: object

allow_mutation = False
validate_assignment = True
arbitrary_types_allowed = True
classmethod model_json_schema()[source]

Generic model_json_schema implementation that works for all classes. Handles simple and complex types, extracts descriptions, and builds nested schemas.

Return type:

Dict[str, Any]