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
def format_for_prompt(include_sources: bool) -> strParameters
ParamField
boolNo description available.
Returns
ResponseField
strThe result of the operation.
Source
View on GitHubpraisonaiagents/rag/models.py at line 119