BaseMessage

BaseMessage(uuid: UUID | None = None, **kwargs: Any)

!!! abstract “Usage Documentation” Models

A base class for creating Pydantic models.
Attributes:
class_vars: The names of the class variables defined on the model.
private_attributes: Metadata about the private attributes of the model.
signature: The synthesized __init__ [Signature][inspect.Signature] of the model.
pydantic_complete: Whether model building is completed, or if there are still undefined fields.
pydantic_core_schema: The core schema of the model.
pydantic_custom_init: Whether the model has a custom __init__ function.
pydantic_decorators: Metadata containing the decorators defined on the model.
This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.
pydantic_generic_metadata: Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
pydantic_parent_namespace: Parent namespace of the model, used for automatic rebuilding of models.
pydantic_post_init: The name of the post-init method for the model, if defined.
pydantic_root_model: Whether the model is a [RootModel][pydantic.root_model.RootModel].
pydantic_serializer: The pydantic-core SchemaSerializer used to dump instances of the model.
pydantic_validator: The pydantic-core SchemaValidator used to validate instances of the model.
pydantic_fields: A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
pydantic_computed_fields: A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
pydantic_extra: A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to 'allow'.
pydantic_fields_set: The names of fields explicitly set during instantiation.
pydantic_private: Values of private attributes set on the model instance.
Base message class

Parameters:
NameDescription
uuidType: uuid.UUID | None

Default: None
**kwargsType: Any

Class Attributes

model_config



uuid



Instance Methods

print

print(self, f: Callable[..., Any] | None = None) -> None

Print message

Parameters:
NameDescription
fPrint function.

If none, python’s default print will be used.

Type: Callable[…, Any] | None

Default: None