> ## 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.

# Has System Prompt • AI Agent SDK

> has_system_prompt: Check if a system prompt is configured.

# has\_system\_prompt

Method

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

Check if a system prompt is configured.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def has_system_prompt() -> bool
```

### Returns

**Returns** `bool`

The result of the operation.

## Used By

* [`PreparedTurnContext.to_dict`](../functions/PreparedTurnContext-to_dict)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/turn_context.py#L243)
>
> `praisonaiagents/runtime/turn_context.py` at line 243


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