chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com> Co-authored-by: Shubham Naik <shubham.naik10@gmail.com> Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
"id": "6d3806ac-38f3-4999-bbed-953037bd0fd9",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# MemGPT Python Client \n",
|
||||
"Welcome to the MemGPT tutorial! In this tutorial, we'll go through how to create a basic user-client for MemGPT and create a custom agent with long term memory. \n",
|
||||
"# Letta Python Client \n",
|
||||
"Welcome to the Letta tutorial! In this tutorial, we'll go through how to create a basic user-client for Letta and create a custom agent with long term memory. \n",
|
||||
"\n",
|
||||
"MemGPT runs *agents-as-a-service*, so agents can run independently on a server. For this tutorial, we will be connecting to an existing MemGPT server via the Python client and the UI console. If you don't have a running server, see the [documentation](https://memgpt.readme.io/docs/running-a-memgpt-server) for instructions on how to create one. "
|
||||
"Letta runs *agents-as-a-service*, so agents can run independently on a server. For this tutorial, we will be connecting to an existing Letta server via the Python client and the UI console. If you don't have a running server, see the [documentation](https://letta.readme.io/docs/running-a-letta-server) for instructions on how to create one. "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -16,7 +16,7 @@
|
||||
"id": "7c0b6d6b-dbe6-412b-b129-6d7eb7d626a3",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Part 0: Install MemGPT "
|
||||
"## Part 0: Install Letta "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26,7 +26,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!pip install git+https://github.com/cpacker/MemGPT.git@tutorials"
|
||||
"!pip install git+https://github.com/cpacker/Letta.git@tutorials"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -34,9 +34,9 @@
|
||||
"id": "a0484348-f7b2-48e3-9a2f-7d6495ef76e3",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Part 1: Connecting to the MemGPT Client \n",
|
||||
"## Part 1: Connecting to the Letta Client \n",
|
||||
"\n",
|
||||
"The MemGPT client connects to a running MemGPT service, specified by `base_url`. The client corresponds to a *single-user* (you), so requires an authentication token to let the service know who you are. \n",
|
||||
"The Letta client connects to a running Letta service, specified by `base_url`. The client corresponds to a *single-user* (you), so requires an authentication token to let the service know who you are. \n",
|
||||
"\n"
|
||||
]
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from memgpt import create_client\n",
|
||||
"from letta import create_client\n",
|
||||
"\n",
|
||||
"base_url = \"http://35.238.125.250:8083\"\n",
|
||||
"\n",
|
||||
@@ -63,7 +63,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"### Viewing the developer portal \n",
|
||||
"MemGPT provides a portal interface for viewing and interacting with agents, data sources, tools, and more. You can enter `http://35.238.125.250:8083` into your browser to load the developer portal, and enter in `my_token` to log in. \n",
|
||||
"Letta provides a portal interface for viewing and interacting with agents, data sources, tools, and more. You can enter `http://35.238.125.250:8083` into your browser to load the developer portal, and enter in `my_token` to log in. \n",
|
||||
"\n",
|
||||
"<img src=\"./developer_portal_login.png\" width=\"800\">"
|
||||
]
|
||||
@@ -74,7 +74,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Part 2: Create an agent \n",
|
||||
"We'll first start with creating a basic MemGPT agent. "
|
||||
"We'll first start with creating a basic Letta agent. "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -105,7 +105,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from memgpt.client.utils import pprint \n",
|
||||
"from letta.client.utils import pprint \n",
|
||||
"\n",
|
||||
"response = client.user_message(agent_id=basic_agent.id, message=\"hello\") \n",
|
||||
"pprint(response.messages)"
|
||||
@@ -132,7 +132,7 @@
|
||||
"* The *human* specifies the personalization information about the user interacting with the agent \n",
|
||||
"* The *persona* specifies the behavior and personality of the event\n",
|
||||
"\n",
|
||||
"What makes MemGPT unique is that the starting *persona* and *human* can change over time as the agent gains new information, enabling it to have evolving memory. We'll see an example of this later in the tutorial."
|
||||
"What makes Letta unique is that the starting *persona* and *human* can change over time as the agent gains new information, enabling it to have evolving memory. We'll see an example of this later in the tutorial."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -181,7 +181,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"### Referencing memory \n",
|
||||
"MemGPT agents can customize their responses based on what memories they have stored. Try asking a question that related to the human and persona you provided. "
|
||||
"Letta agents can customize their responses based on what memories they have stored. Try asking a question that related to the human and persona you provided. "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -201,7 +201,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"### Evolving memory \n",
|
||||
"MemGPT agents have long term memory, and can evolve what they store in their memory over time. In the example below, we make a correction to the previously provided information. See how the agent processes this new information. "
|
||||
"Letta agents have long term memory, and can evolve what they store in their memory over time. In the example below, we make a correction to the previously provided information. See how the agent processes this new information. "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -229,7 +229,7 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Part 3: Adding Tools \n",
|
||||
"MemGPT agents can be connected to custom tools. Currently, tools must be created by service administrators. However, you can add additional tools provided by the service administrator to the agent you create. "
|
||||
"Letta agents can be connected to custom tools. Currently, tools must be created by service administrators. However, you can add additional tools provided by the service administrator to the agent you create. "
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -290,16 +290,16 @@
|
||||
"id": "510675a8-22bc-4f9f-9c79-91e2ffa9caf9",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 🎉 Congrats, you're done with day 1 of MemGPT! \n",
|
||||
"For day 2, we'll go over how to connect *data sources* to MemGPT to run RAG agents. "
|
||||
"## 🎉 Congrats, you're done with day 1 of Letta! \n",
|
||||
"For day 2, we'll go over how to connect *data sources* to Letta to run RAG agents. "
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "memgpt",
|
||||
"display_name": "letta",
|
||||
"language": "python",
|
||||
"name": "memgpt"
|
||||
"name": "letta"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
|
||||
Reference in New Issue
Block a user