letta-nightly 0.5.3.dev20241120201258__py3-none-any.whl → 0.5.4.dev20241121104201__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.5.3"
1
+ __version__ = "0.5.4"
2
2
 
3
3
  # import clients
4
4
  from letta.client.client import LocalClient, RESTClient, create_client
letta/embeddings.py CHANGED
@@ -3,18 +3,7 @@ import uuid
3
3
  from typing import Any, List, Optional
4
4
 
5
5
  import numpy as np
6
-
7
- # from llama_index.core.base.embeddings import BaseEmbedding
8
- # from llama_index.core.embeddings import BaseEmbedding
9
- # from llama_index.core.base.embeddings.base import BaseEmbedding
10
- # from llama_index.bridge.pydantic import PrivateAttr
11
- # from llama_index.embeddings.base import BaseEmbedding
12
- # from llama_index.embeddings.huggingface_utils import format_text
13
6
  import tiktoken
14
- from llama_index.core import Document as LlamaIndexDocument
15
-
16
- # from llama_index.core.base.embeddings import BaseEmbedding
17
- from llama_index.core.node_parser import SentenceSplitter
18
7
 
19
8
  from letta.constants import (
20
9
  EMBEDDING_TO_TOKENIZER_DEFAULT,
@@ -26,6 +15,9 @@ from letta.utils import is_valid_url, printd
26
15
 
27
16
 
28
17
  def parse_and_chunk_text(text: str, chunk_size: int) -> List[str]:
18
+ from llama_index.core import Document as LlamaIndexDocument
19
+ from llama_index.core.node_parser import SentenceSplitter
20
+
29
21
  parser = SentenceSplitter(chunk_size=chunk_size)
30
22
  llama_index_docs = [LlamaIndexDocument(text=text)]
31
23
  nodes = parser.get_nodes_from_documents(llama_index_docs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-nightly
3
- Version: 0.5.3.dev20241120201258
3
+ Version: 0.5.4.dev20241121104201
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  License: Apache License
6
6
  Author: Letta Team
@@ -56,7 +56,7 @@ Requires-Dist: prettytable (>=3.9.0,<4.0.0)
56
56
  Requires-Dist: psycopg2 (>=2.9.10,<3.0.0) ; extra == "postgres"
57
57
  Requires-Dist: psycopg2-binary (>=2.9.10,<3.0.0) ; extra == "postgres"
58
58
  Requires-Dist: pyautogen (==0.2.22) ; extra == "autogen"
59
- Requires-Dist: pydantic (>=2.7.4,<3.0.0)
59
+ Requires-Dist: pydantic (>=2.7.4,<2.10.0)
60
60
  Requires-Dist: pydantic-settings (>=2.2.1,<3.0.0)
61
61
  Requires-Dist: pyhumps (>=3.8.0,<4.0.0)
62
62
  Requires-Dist: pymilvus (>=2.4.3,<3.0.0) ; extra == "milvus"
@@ -1,4 +1,4 @@
1
- letta/__init__.py,sha256=xuSk7ZHRYiU9fZ-Evj64LtXe57rZnKi2vEC5j27YF7A,1014
1
+ letta/__init__.py,sha256=lrj66PR9vRWLWUvQAgk4Qi8BebVsYk8J2poTTbuuBFQ,1014
2
2
  letta/__main__.py,sha256=6Hs2PV7EYc5Tid4g4OtcLXhqVHiNYTGzSBdoOnW2HXA,29
3
3
  letta/agent.py,sha256=Jirt5D89k3s91nsScfjsOTfx3SS_eAOF8iQvZ0I3hjM,77421
4
4
  letta/agent_store/chroma.py,sha256=upR5zGnGs6I6btulEYbiZdGG87BgKjxUJOQZ4Y-RQ_M,12492
@@ -21,7 +21,7 @@ letta/constants.py,sha256=gg9bI-dqfejJem73iTBVoCygnbKoxCX-PCrnX6kw1YQ,6653
21
21
  letta/credentials.py,sha256=D9mlcPsdDWlIIXQQD8wSPE9M_QvsRrb0p3LB5i9OF5Q,5806
22
22
  letta/data_sources/connectors.py,sha256=5VKxfeV-QyUlK1wexLlpgar99dGm6PHxFaEbSeByo_U,9923
23
23
  letta/data_sources/connectors_helper.py,sha256=2TQjCt74fCgT5sw1AP8PalDEk06jPBbhrPG4HVr-WLs,3371
24
- letta/embeddings.py,sha256=qPt8kB-wmuRIg1py7DHnQGJpw3DmQHJ505FJvc0K6Yk,8873
24
+ letta/embeddings.py,sha256=3vJaQ8RMLLp6yiYZGsthq6Xsu4keb9gp7DYN_2GPBFU,8459
25
25
  letta/errors.py,sha256=cDOo4cSYL-LA0w0b0GdsxXd5k2I1LLOY8nhtXk9YqYs,2875
26
26
  letta/functions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  letta/functions/function_sets/base.py,sha256=N4QmOjL6gDEyOg67ocF6zVKM-NquTo-yXG_T8r18buA,6440
@@ -210,8 +210,8 @@ letta/streaming_interface.py,sha256=_FPUWy58j50evHcpXyd7zB1wWqeCc71NCFeWh_TBvnw,
210
210
  letta/streaming_utils.py,sha256=329fsvj1ZN0r0LpQtmMPZ2vSxkDBIUUwvGHZFkjm2I8,11745
211
211
  letta/system.py,sha256=buKYPqG5n2x41hVmWpu6JUpyd7vTWED9Km2_M7dLrvk,6960
212
212
  letta/utils.py,sha256=COwQLAt02eEM9tjp6p5kN8YeTqGXr714l5BvffLVCLU,32376
213
- letta_nightly-0.5.3.dev20241120201258.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
214
- letta_nightly-0.5.3.dev20241120201258.dist-info/METADATA,sha256=m7OhHMNZY5zuqzPy0GA8kX-7FZ4G1XGHbROJi79K8jo,11069
215
- letta_nightly-0.5.3.dev20241120201258.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
216
- letta_nightly-0.5.3.dev20241120201258.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
217
- letta_nightly-0.5.3.dev20241120201258.dist-info/RECORD,,
213
+ letta_nightly-0.5.4.dev20241121104201.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
214
+ letta_nightly-0.5.4.dev20241121104201.dist-info/METADATA,sha256=NMAuQrVAjCVN75tHqdPuKoZh9xmwP9mOeOgQ3HbTfcg,11070
215
+ letta_nightly-0.5.4.dev20241121104201.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
216
+ letta_nightly-0.5.4.dev20241121104201.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
217
+ letta_nightly-0.5.4.dev20241121104201.dist-info/RECORD,,