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

# System Prompt • AI Agent SDK

> system_prompt: Content of the first system message, or ``None`` if there was none.

# system\_prompt

Method

> This is a method of the [**RecordedRequest**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/RecordedRequest.md) class in the [**scripted**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/scripted.md) module.

Content of the first system message, or `None` if there was none.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def system_prompt() -> Optional[str]
```

### Returns

**Returns** `Optional[str]`

The result of the operation.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L159)**
>
> `praisonaiagents/model_harness/scripted.py` at line 159


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.