base_types
Base data types that are used throughout the Eleanor framework.
This module defines the base data types that are commonly used in the Eleanor framework.
These data types provide a foundation for building more complex data models and
structures. They include the BaseDataModel class, which is a Pydantic model with
framework-wide defaults.
Classes
BaseDataModel
Bases: BaseModel
EleanorAI Framework-wide Pydantic data object defaults.
Attributes
model_config
class-attribute
instance-attribute
model_config = ConfigDict(
populate_by_name=True,
use_enum_values=True,
extra="forbid",
strict=False,
)
Functions
model_dump_json
Dump the Pydantic model as a JSON string.
Notably, this method handles aliases properly and forces by_alias to always be True.
Parameters:
-
*args–Passed to the Pydantic model_dump_json method
-
**kwargs–Passed to the Pydantic model_dump_json method
Returns:
-
str(str) –The model dumped as a JSON string.