Format For Prompt • AI Agent SDK

format_for_prompt: Format context for injection into a prompt.

format_for_prompt

Method

</div>

This is a method of the ContextPack class in the models module.

Format context for injection into a prompt.

Signature

python
def format_for_prompt(include_sources: bool) -> str

Parameters

ParamField bool

No description available.

Returns

ResponseField str

The result of the operation.

Source

View on GitHub

praisonaiagents/rag/models.py at line 119