> ## 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.oai.bedrock.extract_system_messages

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

#### extract\_system\_messages

```python theme={null}
extract_system_messages(messages: list[dict[str, Any]]) -> list
```

Extract the system messages from the list of messages.<br />

<b>Parameters:</b>

| Name       | Description                                                   |
| ---------- | ------------------------------------------------------------- |
| `messages` | List of messages.<br /><br />**Type:** list\[dict\[str, Any]] |

<b>Returns:</b>

| Type | Description                                    |
| ---- | ---------------------------------------------- |
| list | List\[SystemMessage]: List of System messages. |

<br />
