From ec5ab83d616d3873b6479e5a8a82198230b0d4b5 Mon Sep 17 00:00:00 2001 From: Maximilian Winter Date: Sat, 29 Jun 2024 12:11:23 +0200 Subject: [PATCH] Update main.py --- examples/07_Memory/MemoryAssistant/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/07_Memory/MemoryAssistant/main.py b/examples/07_Memory/MemoryAssistant/main.py index 4925ef0..5a96490 100644 --- a/examples/07_Memory/MemoryAssistant/main.py +++ b/examples/07_Memory/MemoryAssistant/main.py @@ -29,8 +29,9 @@ "The following section shows the count of memories in archival memory and chat history memory and the current content of your core memory:") date_time_section = SystemPromptModule("current_date_time", "The following section shows the current date and time:") -memory_intro_section = SystemPromptModule("memory_intro", - "To support you in your task as a game master and to help you remembering things, you have access to 3 different types of memory.", + +memory_intro_section = SystemPromptModule(section_name="memory_intro", + prefix="To support you in your task as a AI assistant and to help you remembering things, you have access to 3 different types of memory.", position=SystemPromptModulePosition.after_system_instructions) memory_intro_section.set_content(memory_prompt) output_settings.output_structured_output_and_raw_json_string = True