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

# PromptTemplate

A `PromptTemplate` class is used to create and organize the messages (prompts) that are sent to a language model.
It allows you to define a basic structure for the prompt, making it easy to manage and reuse across different situations.
This helps maintain consistency and simplifies prompt formatting when interacting with the model.

### Parameters

| Attribute                        | Parameters       | Type  | Description                                                                           |
| :------------------------------- | :--------------- | :---- | :------------------------------------------------------------------------------------ |
| **Prompt Type** *(optional)*     | `prompt_type`    | `str` | specifies the type of prompt. Default `None`                                          |
| **System Message**  *(optional)* | `system_message` | `str` | An optional string that defines a system-level message for the prompt. Default `None` |

```python theme={null}
from superagentx.prompt import PromptTemplate

prompt_template = PromptTemplate()
```
