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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PreparedTurnContext**](../classes/PreparedTurnContext) class in the [**turn\_context**](../modules/turn_context) module.

Check if a system prompt is configured.

## Signature

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

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/turn_context.py#L243">
  `praisonaiagents/runtime/turn_context.py` at line 243
</Card>
