# UpdateSystemMessage

## ``autogen.UpdateSystemMessage`dataclass`[

```
UpdateSystemMessage(content_updater)
```

Update the agent's system message before they reply

| PARAMETER        | DESCRIPTION                                                                                                                                                                  |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `content_updater`| The format string or function to update the agent's system message. Can be a format string or a Callable. If a string, it will be used as a template and substitute the context variables. If a Callable, it should have the signature: def my_content_updater(agent: ConversableAgent, messages: List[Dict[str, Any]]) -> str<br>**TYPE:**`Union[Callable, str]` |

### ``content_updater`instance-attribute`

```
content_updater
```
