Has System Prompt • AI Agent SDK

has_system_prompt: Check if a system prompt is configured.

has_system_prompt

Method

</div>

This is a method of the PreparedTurnContext class in the turn_context module.

Check if a system prompt is configured.

Signature

python
def has_system_prompt() -> bool

Returns

ResponseField bool

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/runtime/turn_context.py at line 243