pub fn inject_memory_prompt(
system_instructions: &str,
memory_summary: Option<&str>,
) -> StringExpand description
Injects memory summary into system instructions if available.
This function appends memory context to the base system instructions, enabling the agent to maintain persistent context across conversation turns.
§Arguments
system_instructions- The base system instructionsmemory_summary- Optional memory summary from session state
§Returns
System instructions with memory context injected, or original instructions if no memory