letta-nightly 0.1.7.dev20241003104113__py3-none-any.whl → 0.4.1.dev20241004012408__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of letta-nightly might be problematic. Click here for more details.

letta/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.7"
1
+ __version__ = "0.4.1"
2
2
 
3
3
  # import clients
4
4
  from letta.client.admin import Admin
@@ -2,11 +2,11 @@
2
2
 
3
3
  import time
4
4
  import uuid
5
- from typing import Annotated
5
+ from typing import Annotated, Union
6
6
 
7
7
  import typer
8
8
 
9
- from letta import create_client
9
+ from letta import LocalClient, RESTClient, create_client
10
10
  from letta.benchmark.constants import HUMAN, PERSONA, PROMPTS, TRIES
11
11
  from letta.config import LettaConfig
12
12
 
@@ -17,11 +17,13 @@ from letta.utils import get_human_text, get_persona_text
17
17
  app = typer.Typer()
18
18
 
19
19
 
20
- def send_message(message: str, agent_id, turn: int, fn_type: str, print_msg: bool = False, n_tries: int = TRIES):
20
+ def send_message(
21
+ client: Union[LocalClient, RESTClient], message: str, agent_id, turn: int, fn_type: str, print_msg: bool = False, n_tries: int = TRIES
22
+ ):
21
23
  try:
22
24
  print_msg = f"\t-> Now running {fn_type}. Progress: {turn}/{n_tries}"
23
25
  print(print_msg, end="\r", flush=True)
24
- response = client.user_message(agent_id=agent_id, message=message, return_token_count=True)
26
+ response = client.user_message(agent_id=agent_id, message=message)
25
27
 
26
28
  if turn + 1 == n_tries:
27
29
  print(" " * len(print_msg), end="\r", flush=True)
@@ -65,7 +67,7 @@ def bench(
65
67
 
66
68
  agent_id = agent.id
67
69
  result, msg = send_message(
68
- message=message, agent_id=agent_id, turn=i, fn_type=fn_type, print_msg=print_messages, n_tries=n_tries
70
+ client=client, message=message, agent_id=agent_id, turn=i, fn_type=fn_type, print_msg=print_messages, n_tries=n_tries
69
71
  )
70
72
 
71
73
  if print_messages:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-nightly
3
- Version: 0.1.7.dev20241003104113
3
+ Version: 0.4.1.dev20241004012408
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  License: Apache License
6
6
  Author: Letta Team
@@ -1,4 +1,4 @@
1
- letta/__init__.py,sha256=6ssNZ5ATYwZgMO16kAYqm-2tMfj2xhA0-kJJhj_eqfw,996
1
+ letta/__init__.py,sha256=btKRPdyhkpIyHlCPRLwwz-SCSVcEGNBeheYA-XNesiI,996
2
2
  letta/__main__.py,sha256=6Hs2PV7EYc5Tid4g4OtcLXhqVHiNYTGzSBdoOnW2HXA,29
3
3
  letta/agent.py,sha256=GdNhMG_ypSmkU8FDqNf3BQMMftRsIrNAbzyhqlIv2jE,65251
4
4
  letta/agent_store/chroma.py,sha256=upR5zGnGs6I6btulEYbiZdGG87BgKjxUJOQZ4Y-RQ_M,12492
@@ -7,7 +7,7 @@ letta/agent_store/lancedb.py,sha256=8RWmqVjowm5g0cc6DNRcb6f1FHGEqFnccnuekhWY39U,
7
7
  letta/agent_store/milvus.py,sha256=VxEKz9XR7_3QTY59K_38NtJCCQvi41rhHoFibfzW7yw,8469
8
8
  letta/agent_store/qdrant.py,sha256=qIEJhXJb6GzcT4wp8iV5Ox5W1CFMvcPViTI4HLSh59E,7879
9
9
  letta/agent_store/storage.py,sha256=QWrPdIEJCnsPg1xnPrG1xbOXmbjpz37ZNhvuH52M7A8,6642
10
- letta/benchmark/benchmark.py,sha256=JjCQE7piz2VHh3QCGwJX-9DelaSlUYV4Qw01hQuVolU,3633
10
+ letta/benchmark/benchmark.py,sha256=ebvnwfp3yezaXOQyGXkYCDYpsmre-b9hvNtnyx4xkG0,3701
11
11
  letta/benchmark/constants.py,sha256=aXc5gdpMGJT327VuxsT5FngbCK2J41PQYeICBO7g_RE,536
12
12
  letta/cli/cli.py,sha256=saohjAsXFs4_kwzd95xk4JSZnd0T0OYN4TTj-ZOYEpQ,31195
13
13
  letta/cli/cli_config.py,sha256=MSxqbS5F9jUSjCgLkd-6T5Hj3ca_l-AoSwXc6dgy13E,57093
@@ -184,8 +184,8 @@ letta/settings.py,sha256=1S0CN3fCGdZIdhIWPNJO5k2vmosrNRux4arnCj7dYQg,6502
184
184
  letta/streaming_interface.py,sha256=LPY1NmXtptcjdHrfVOOKL4-v3AyUD8SIyQMt1Dypd1A,15532
185
185
  letta/system.py,sha256=buKYPqG5n2x41hVmWpu6JUpyd7vTWED9Km2_M7dLrvk,6960
186
186
  letta/utils.py,sha256=LyqSRz_FejtsdelKigpV86kT8GRVrLwkXIOVQLHPm7Q,30661
187
- letta_nightly-0.1.7.dev20241003104113.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
188
- letta_nightly-0.1.7.dev20241003104113.dist-info/METADATA,sha256=l8vUIb9r_CWkw7QkY4dPuiyli9i6Uj2pMEwpRgPq7HI,5967
189
- letta_nightly-0.1.7.dev20241003104113.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
190
- letta_nightly-0.1.7.dev20241003104113.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
191
- letta_nightly-0.1.7.dev20241003104113.dist-info/RECORD,,
187
+ letta_nightly-0.4.1.dev20241004012408.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
188
+ letta_nightly-0.4.1.dev20241004012408.dist-info/METADATA,sha256=qx7pv3QJc_760ltIgPfj8SYiNVDbSZZho8o5Ybv07FA,5967
189
+ letta_nightly-0.4.1.dev20241004012408.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
190
+ letta_nightly-0.4.1.dev20241004012408.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
191
+ letta_nightly-0.4.1.dev20241004012408.dist-info/RECORD,,