From f042dc4e73a4470ed0a992407dde43cd8feb11e1 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Fri, 9 Feb 2024 17:01:38 -0800 Subject: [PATCH] docs: Fix client README example (#984) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c5a02330..e0728e27 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ MemGPT allows you to build LLM agents with self-editing memory Try out our MemGPT chatbot on Discord! - + You can now run MemGPT with open/local LLMs and AutoGen! @@ -142,7 +142,7 @@ client = MemGPT( ) # You can set many more parameters, this is just a basic example -agent_id = client.create_agent( +agent_state = client.create_agent( agent_config={ "persona": "sam_pov", "human": "cs_phd", @@ -152,7 +152,7 @@ agent_id = client.create_agent( # Now that we have an agent_name identifier, we can send it a message! # The response will have data from the MemGPT agent my_message = "Hi MemGPT! How's it going?" -response = client.user_message(agent_id=agent_id, message=my_message) +response = client.user_message(agent_id=agent_state.id, message=my_message) ```