Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix system prompt return

magmuellercb9006aada80
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,
)
)