Get Memory Context • AI Agent SDK

get_memory_context: Get memory context for the current conversation.

get_memory_context

Method

</div>

This is a method of the Agent class in the agent module.

Get memory context for the current conversation.

Signature

python
def get_memory_context(query: Optional[str]) -> str

Parameters

ParamField Optional[str]

Optional query to focus the context

Returns

ResponseField str

Formatted memory context string

Uses

  • get_context

Source

View on GitHub

praisonaiagents/agent/agent.py at line 6465


Related Documentation