> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.messages.BaseMessage

<h2 id="autogen.messages.BaseMessage" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">BaseMessage</span>
</h2>

```python theme={null}
BaseMessage(uuid: UUID | None = None, **kwargs: Any)
```

!!! abstract "Usage Documentation"
[Models](/docs/api-reference/autogen/concepts/models)

A base class for creating Pydantic models.<br />Attributes: <br />    **class\_vars**: The names of the class variables defined on the model.<br />    **private\_attributes**: Metadata about the private attributes of the model.<br />    **signature**: The synthesized `__init__` \[`Signature`]\[inspect.Signature] of the model.<br />    **pydantic\_complete**: Whether model building is completed, or if there are still undefined fields.<br />    **pydantic\_core\_schema**: The core schema of the model.<br />    **pydantic\_custom\_init**: Whether the model has a custom `__init__` function.<br />    **pydantic\_decorators**: Metadata containing the decorators defined on the model.<br />        This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.<br />    **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.<br />    **pydantic\_parent\_namespace**: Parent namespace of the model, used for automatic rebuilding of models.<br />    **pydantic\_post\_init**: The name of the post-init method for the model, if defined.<br />    **pydantic\_root\_model**: Whether the model is a \[`RootModel`]\[pydantic.root\_model.RootModel].<br />    **pydantic\_serializer**: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.<br />    **pydantic\_validator**: The `pydantic-core` `SchemaValidator` used to validate instances of the model.<br />    **pydantic\_fields**: A dictionary of field names and their corresponding \[`FieldInfo`]\[pydantic.fields.FieldInfo] objects.<br />    **pydantic\_computed\_fields**: A dictionary of computed field names and their corresponding \[`ComputedFieldInfo`]\[pydantic.fields.ComputedFieldInfo] objects.<br />    **pydantic\_extra**: A dictionary containing extra values, if \[`extra`]\[pydantic.config.ConfigDict.extra]
is set to `'allow'`.<br />    **pydantic\_fields\_set**: The names of fields explicitly set during instantiation.<br />    **pydantic\_private**: Values of private attributes set on the model instance.<br />Base message class

<b>Parameters:</b>

| Name       | Description                                              |
| ---------- | -------------------------------------------------------- |
| `uuid`     | **Type:** uuid.UUID \| None<br /><br />**Default:** None |
| `**kwargs` | **Type:** Any                                            |

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model\_config

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### uuid

<br />

<br />

### Instance Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### print

```python theme={null}
print(self, f: Callable[..., Any] | None = None) -> None
```

Print message

<b>Parameters:</b>

| Name | Description                                                                                                                                            |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `f`  | Print function.<br /><br />If none, python's default print will be used.<br /><br />**Type:** Callable\[..., Any] \| None<br /><br />**Default:** None |

<br />
