From cb9006aada80bdf0cab1812349a0642e4e29f028 Mon Sep 17 00:00:00 2001 From: magmueller Date: Mon, 25 Nov 2024 16:56:03 +0100 Subject: [PATCH] Fix system prompt return --- examples/custom_system_prompt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/custom_system_prompt.py b/examples/custom_system_prompt.py index 4b9c947f4..e64a5beec 100644 --- a/examples/custom_system_prompt.py +++ b/examples/custom_system_prompt.py @@ -31,7 +31,8 @@ async def main(): print( json.dumps( - agent.system_prompt.get_system_message().model_dump(exclude_unset=True), indent=4 + agent.message_manager.system_prompt.model_dump(exclude_unset=True), + indent=4, ) )