Get Memory Context • AI Agent SDK
get_memory_context: Get memory context for the current conversation.
get_memory_context
Method
</div>
Get memory context for the current conversation.
Signature
def get_memory_context(query: Optional[str]) -> strParameters
ParamField
Optional[str]Optional query to focus the context
Returns
ResponseField
strFormatted memory context string
Uses
get_context
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6465