From c7131ad0daeb27f0a823e8f8169728aaf9a2a358 Mon Sep 17 00:00:00 2001 From: Keith <128703529+keithf123r@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:15:50 -0800 Subject: [PATCH] docs: Feature/update docs (#2257) --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/pull_request_template.md | 2 +- CONTRIBUTING.md | 4 ++-- README.md | 10 +++++----- examples/docs/rest_client.py | 2 +- examples/notebooks/Customizing memory management.ipynb | 2 +- examples/personal_assistant_demo/README.md | 4 ++-- examples/resend_example/README.md | 10 +++++----- letta/agent.py | 2 +- letta/local_llm/function_parser.py | 2 +- letta/server/server.py | 2 +- letta/server/ws_api/server.py | 2 +- letta/settings.py | 2 +- tests/test_client.py | 2 +- 14 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6988a2e8..ff63f2ac 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem. Add any other context about the problem here. **Letta Config** -Please attach your `~/.letta/config` file or copy past it below. +Please attach your `~/.letta/config` file or copy paste it below. --- diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 69acf6ac..8035af38 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,7 +8,7 @@ How can we test your PR during review? What commands should we run? What outcome Have you tested the latest commit on the PR? If so please provide outputs from your tests. **Related issues or PRs** -Please link any related GitHub [issues](https://github.com/cpacker/Letta/issues) or [PRs](https://github.com/cpacker/Letta/pulls). +Please link any related GitHub [issues](https://github.com/letta-ai/letta/issues) or [PRs](https://github.com/letta-ai/letta/pulls). **Is your PR over 500 lines of code?** If so, please break up your PR into multiple smaller PRs so that we can review them quickly, or provide justification for its length. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a55d87a1..0d8f16f7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -112,14 +112,14 @@ poetry run black . -l 140 You're almost there! It's time to share your brilliance with the world. 🌍 -1. Visit [Letta](https://github.com/cpacker/letta). +1. Visit [Letta](https://github.com/letta-ai/letta). 2. Click "New Pull Request" button. 3. Choose the base branch (`main`) and the compare branch (your feature branch). 4. Whip up a catchy title and describe your changes in the description. 🪄 ## 6. 🔍 Review and Approval -The maintainers, will take a look and might suggest some cool upgrades or ask for more details. Once they give the thumbs up, your creation becomes part of Letta! +The maintainers will take a look and might suggest some cool upgrades or ask for more details. Once they give the thumbs up, your creation becomes part of Letta! ## 7. 📜 Code of Conduct diff --git a/README.md b/README.md index b73622f6..9ccb2a50 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Once the Letta server is running, you can access it via port `8283` (e.g. sendin > [!NOTE] > The Letta ADE is a graphical user interface for creating, deploying, interacting and observing with your Letta agents. > -> For example, if you're running a Letta server to power an end-user application (such as a customer support chatbot), you can use the ADE to test, debug, and observe the agents in your server. You can also use the ADE as a general chat interface to interacting with your Letta agents. +> For example, if you're running a Letta server to power an end-user application (such as a customer support chatbot), you can use the ADE to test, debug, and observe the agents in your server. You can also use the ADE as a general chat interface to interact with your Letta agents.
+
Then I sent a dummy email:
```
@@ -276,4 +276,4 @@ whatever time works best for you
Follow-up inside WhatsApp:
-
+
diff --git a/examples/resend_example/README.md b/examples/resend_example/README.md
index 038c6d6e..1f04a4aa 100644
--- a/examples/resend_example/README.md
+++ b/examples/resend_example/README.md
@@ -51,15 +51,15 @@ def send_email(self, description: str):
To create the tool in the dev portal, simply navigate to the tool creator tab, create a new tool called `send_email`, and copy-paste the above code into the code block area and press "Create Tool".
-
+
Once you've created the tool, create a new agent and make sure to select `send_email` as an enabled tool.
-
+
Now your agent should be able to call the `send_email` function when needed:
-
+
## Option 2 (CLI)
@@ -85,8 +85,8 @@ Create an agent with that preset (disable `--stream` if you're not using a strea
letta run --preset resend_preset --persona sam_pov --human cs_phd --stream
```
-
+
Waiting in our inbox:
-
+
diff --git a/letta/agent.py b/letta/agent.py
index 341b25fd..3e4d2443 100644
--- a/letta/agent.py
+++ b/letta/agent.py
@@ -1290,7 +1290,7 @@ class Agent(BaseAgent):
# NOTE: a bit of a hack - we pull the timestamp from the message created_by
memory_edit_timestamp = self._messages[0].created_at
- # update memory (TODO: potentially update recall/archival stats seperately)
+ # update memory (TODO: potentially update recall/archival stats separately)
new_system_message_str = compile_system_message(
agent_id=self.agent_state.id,
system_prompt=self.agent_state.system,
diff --git a/letta/local_llm/function_parser.py b/letta/local_llm/function_parser.py
index 18031bc4..6dd788da 100644
--- a/letta/local_llm/function_parser.py
+++ b/letta/local_llm/function_parser.py
@@ -32,7 +32,7 @@ def heartbeat_correction(message_history, new_message):
If the last message in the stack is a user message and the new message is an assistant func call, fix the heartbeat
- See: https://github.com/cpacker/Letta/issues/601
+ See: https://github.com/letta-ai/letta/issues/601
"""
if len(message_history) < 1:
return None
diff --git a/letta/server/server.py b/letta/server/server.py
index 3eb3207a..4a48b2a2 100644
--- a/letta/server/server.py
+++ b/letta/server/server.py
@@ -1056,7 +1056,7 @@ class SyncServer(Server):
config_copy[k] = server_utils.shorten_key_middle(v, chars_each_side=5)
return config_copy
- # TODO: do we need a seperate server config?
+ # TODO: do we need a separate server config?
base_config = vars(self.config)
clean_base_config = clean_keys(base_config)
diff --git a/letta/server/ws_api/server.py b/letta/server/ws_api/server.py
index 975bd0d2..e2408dda 100644
--- a/letta/server/ws_api/server.py
+++ b/letta/server/ws_api/server.py
@@ -33,7 +33,7 @@ class WebSocketServer:
self.initialize_server()
# Can play with ping_interval and ping_timeout
# See: https://websockets.readthedocs.io/en/stable/topics/timeouts.html
- # and https://github.com/cpacker/Letta/issues/471
+ # and https://github.com/letta-ai/letta/issues/471
async with websockets.serve(self.handle_client, self.host, self.port):
await asyncio.Future() # Run forever
diff --git a/letta/settings.py b/letta/settings.py
index 8da6b3aa..20a0c1c5 100644
--- a/letta/settings.py
+++ b/letta/settings.py
@@ -91,7 +91,7 @@ class Settings(BaseSettings):
return f"postgresql+pg8000://letta:letta@localhost:5432/letta"
# add this property to avoid being returned the default
- # reference: https://github.com/cpacker/Letta/issues/1362
+ # reference: https://github.com/letta-ai/letta/issues/1362
@property
def letta_pg_uri_no_default(self) -> str:
if self.pg_uri:
diff --git a/tests/test_client.py b/tests/test_client.py
index 526559b7..f37fe862 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -340,7 +340,7 @@ def test_messages(client: Union[LocalClient, RESTClient], agent: AgentState):
def test_send_system_message(client: Union[LocalClient, RESTClient], agent: AgentState):
"""Important unit test since the Letta API exposes sending system messages, but some backends don't natively support it (eg Anthropic)"""
- send_system_message_response = client.send_message(agent_id=agent.id, message="Event occured: The user just logged off.", role="system")
+ send_system_message_response = client.send_message(agent_id=agent.id, message="Event occurred: The user just logged off.", role="system")
assert send_system_message_response, "Sending message failed"