letta-nightly 0.5.1.dev20241102104033__py3-none-any.whl → 0.5.1.dev20241104104148__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/schemas/organization.py +2 -1
- letta/schemas/tool.py +2 -1
- letta/schemas/user.py +2 -2
- letta/services/tool_manager.py +2 -2
- {letta_nightly-0.5.1.dev20241102104033.dist-info → letta_nightly-0.5.1.dev20241104104148.dist-info}/METADATA +3 -1
- {letta_nightly-0.5.1.dev20241102104033.dist-info → letta_nightly-0.5.1.dev20241104104148.dist-info}/RECORD +9 -9
- {letta_nightly-0.5.1.dev20241102104033.dist-info → letta_nightly-0.5.1.dev20241104104148.dist-info}/LICENSE +0 -0
- {letta_nightly-0.5.1.dev20241102104033.dist-info → letta_nightly-0.5.1.dev20241104104148.dist-info}/WHEEL +0 -0
- {letta_nightly-0.5.1.dev20241102104033.dist-info → letta_nightly-0.5.1.dev20241104104148.dist-info}/entry_points.txt +0 -0
letta/schemas/organization.py
CHANGED
|
@@ -4,6 +4,7 @@ from typing import Optional
|
|
|
4
4
|
from pydantic import Field
|
|
5
5
|
|
|
6
6
|
from letta.schemas.letta_base import LettaBase
|
|
7
|
+
from letta.utils import get_utc_time
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class OrganizationBase(LettaBase):
|
|
@@ -13,7 +14,7 @@ class OrganizationBase(LettaBase):
|
|
|
13
14
|
class Organization(OrganizationBase):
|
|
14
15
|
id: str = Field(..., description="The id of the organization.")
|
|
15
16
|
name: str = Field(..., description="The name of the organization.")
|
|
16
|
-
created_at: datetime = Field(default_factory=
|
|
17
|
+
created_at: Optional[datetime] = Field(default_factory=get_utc_time, description="The creation date of the organization.")
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
class OrganizationCreate(OrganizationBase):
|
letta/schemas/tool.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from typing import Dict, List, Optional
|
|
2
2
|
|
|
3
|
+
from composio import LogLevel
|
|
3
4
|
from pydantic import Field
|
|
4
5
|
|
|
5
6
|
from letta.functions.helpers import (
|
|
@@ -84,7 +85,7 @@ class ToolCreate(LettaBase):
|
|
|
84
85
|
"""
|
|
85
86
|
from composio_langchain import ComposioToolSet
|
|
86
87
|
|
|
87
|
-
composio_toolset = ComposioToolSet()
|
|
88
|
+
composio_toolset = ComposioToolSet(logging_level=LogLevel.ERROR)
|
|
88
89
|
composio_tools = composio_toolset.get_tools(actions=[action])
|
|
89
90
|
|
|
90
91
|
assert len(composio_tools) > 0, "User supplied parameters do not match any Composio tools"
|
letta/schemas/user.py
CHANGED
|
@@ -24,8 +24,8 @@ class User(UserBase):
|
|
|
24
24
|
id: str = Field(..., description="The id of the user.")
|
|
25
25
|
organization_id: Optional[str] = Field(OrganizationManager.DEFAULT_ORG_ID, description="The organization id of the user")
|
|
26
26
|
name: str = Field(..., description="The name of the user.")
|
|
27
|
-
created_at: datetime = Field(default_factory=datetime.utcnow, description="The creation date of the user.")
|
|
28
|
-
updated_at: datetime = Field(default_factory=datetime.utcnow, description="The update date of the user.")
|
|
27
|
+
created_at: Optional[datetime] = Field(default_factory=datetime.utcnow, description="The creation date of the user.")
|
|
28
|
+
updated_at: Optional[datetime] = Field(default_factory=datetime.utcnow, description="The update date of the user.")
|
|
29
29
|
is_deleted: bool = Field(False, description="Whether this user is deleted or not.")
|
|
30
30
|
|
|
31
31
|
|
letta/services/tool_manager.py
CHANGED
|
@@ -12,7 +12,7 @@ from letta.orm.tool import Tool as ToolModel
|
|
|
12
12
|
from letta.schemas.tool import Tool as PydanticTool
|
|
13
13
|
from letta.schemas.tool import ToolCreate, ToolUpdate
|
|
14
14
|
from letta.schemas.user import User as PydanticUser
|
|
15
|
-
from letta.utils import enforce_types
|
|
15
|
+
from letta.utils import enforce_types, printd
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class ToolManager:
|
|
@@ -54,7 +54,7 @@ class ToolManager:
|
|
|
54
54
|
if update_data:
|
|
55
55
|
self.update_tool_by_id(tool.id, ToolUpdate(**update_data), actor)
|
|
56
56
|
else:
|
|
57
|
-
|
|
57
|
+
printd(
|
|
58
58
|
f"`create_or_update_tool` was called with user_id={actor.id}, organization_id={actor.organization_id}, name={tool_create.name}, but found existing tool with nothing to update."
|
|
59
59
|
)
|
|
60
60
|
except NoResultFound:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: letta-nightly
|
|
3
|
-
Version: 0.5.1.
|
|
3
|
+
Version: 0.5.1.dev20241104104148
|
|
4
4
|
Summary: Create LLM agents with long-term memory and custom tools
|
|
5
5
|
License: Apache License
|
|
6
6
|
Author: Letta Team
|
|
@@ -52,6 +52,8 @@ Requires-Dist: pg8000 (>=1.30.3,<2.0.0) ; extra == "postgres"
|
|
|
52
52
|
Requires-Dist: pgvector (>=0.2.3,<0.3.0) ; extra == "postgres"
|
|
53
53
|
Requires-Dist: pre-commit (>=3.5.0,<4.0.0) ; extra == "dev"
|
|
54
54
|
Requires-Dist: prettytable (>=3.9.0,<4.0.0)
|
|
55
|
+
Requires-Dist: psycopg2 (>=2.9.10,<3.0.0)
|
|
56
|
+
Requires-Dist: psycopg2-binary (>=2.9.10,<3.0.0) ; extra == "postgres"
|
|
55
57
|
Requires-Dist: pyautogen (==0.2.22) ; extra == "autogen"
|
|
56
58
|
Requires-Dist: pydantic (>=2.7.4,<3.0.0)
|
|
57
59
|
Requires-Dist: pydantic-settings (>=2.2.1,<3.0.0)
|
|
@@ -144,13 +144,13 @@ letta/schemas/openai/chat_completion_response.py,sha256=05FRfm1EsVivyeWo2aoJk34h
|
|
|
144
144
|
letta/schemas/openai/chat_completions.py,sha256=V0ZPIIk-ds3O6MAkNHMz8zh1hqMFSPrTcYr88WDYzWE,3588
|
|
145
145
|
letta/schemas/openai/embedding_response.py,sha256=WKIZpXab1Av7v6sxKG8feW3ZtpQUNosmLVSuhXYa_xU,357
|
|
146
146
|
letta/schemas/openai/openai.py,sha256=Hilo5BiLAGabzxCwnwfzK5QrWqwYD8epaEKFa4Pwndk,7970
|
|
147
|
-
letta/schemas/organization.py,sha256=
|
|
147
|
+
letta/schemas/organization.py,sha256=DxWkApcw6ES1k_TKtF8Vw3pcPDHx1sWwPSmvhgw2fJo,679
|
|
148
148
|
letta/schemas/passage.py,sha256=eYQMxD_XjHAi72jmqcGBU4wM4VZtSU0XK8uhQxxN3Ug,3563
|
|
149
149
|
letta/schemas/source.py,sha256=hB4Ai6Nj8dFdbxv5_Qaf4uN_cmdGmnzgc-4QnHXcV3o,2562
|
|
150
|
-
letta/schemas/tool.py,sha256=
|
|
150
|
+
letta/schemas/tool.py,sha256=UW2S4N00PJpN8TzDZMsQah5pOTkJ4hcfDUqH2CRhTZ0,9333
|
|
151
151
|
letta/schemas/tool_rule.py,sha256=dHEwVOZ40lMEVCrry7wlZM0IJo5SJrZqXKYpXe40bjY,778
|
|
152
152
|
letta/schemas/usage.py,sha256=lvn1ooHwLEdv6gwQpw5PBUbcwn_gwdT6HA-fCiix6sY,817
|
|
153
|
-
letta/schemas/user.py,sha256=
|
|
153
|
+
letta/schemas/user.py,sha256=nRuH0yVVmAFDq6ubqaKkupUmohMpikla0bQUaKVGooo,1543
|
|
154
154
|
letta/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
155
155
|
letta/server/constants.py,sha256=yAdGbLkzlOU_dLTx0lKDmAnj0ZgRXCEaIcPJWO69eaE,92
|
|
156
156
|
letta/server/rest_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -194,15 +194,15 @@ letta/server/ws_api/protocol.py,sha256=M_-gM5iuDBwa1cuN2IGNCG5GxMJwU2d3XW93XALv9
|
|
|
194
194
|
letta/server/ws_api/server.py,sha256=C2Kv48PCwl46DQFb0ZP30s86KJLQ6dZk2AhWQEZn9pY,6004
|
|
195
195
|
letta/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
196
196
|
letta/services/organization_manager.py,sha256=wW4wOmKaqhHC7oTGWU38OO-dFtmRI0JVmq_k8gI1b0A,3658
|
|
197
|
-
letta/services/tool_manager.py,sha256=
|
|
197
|
+
letta/services/tool_manager.py,sha256=vrRwY6XNmc-Bo1gG1M_RRHgqT7Sio31jYnKvtYjBXTc,8440
|
|
198
198
|
letta/services/user_manager.py,sha256=5wjmnhLoxsc9FCKD0IPotfV24i_iCqmifOkhIBvshtc,4404
|
|
199
199
|
letta/settings.py,sha256=yiYNmnYKj_BdTm0cBEIvQKYGU-lCmFntqsyVfRUy3_k,3411
|
|
200
200
|
letta/streaming_interface.py,sha256=_FPUWy58j50evHcpXyd7zB1wWqeCc71NCFeWh_TBvnw,15736
|
|
201
201
|
letta/streaming_utils.py,sha256=329fsvj1ZN0r0LpQtmMPZ2vSxkDBIUUwvGHZFkjm2I8,11745
|
|
202
202
|
letta/system.py,sha256=buKYPqG5n2x41hVmWpu6JUpyd7vTWED9Km2_M7dLrvk,6960
|
|
203
203
|
letta/utils.py,sha256=SXLEYhyp3gHyIjrxNIKNZZ5ittKo3KOj6zxgC_Trex0,31012
|
|
204
|
-
letta_nightly-0.5.1.
|
|
205
|
-
letta_nightly-0.5.1.
|
|
206
|
-
letta_nightly-0.5.1.
|
|
207
|
-
letta_nightly-0.5.1.
|
|
208
|
-
letta_nightly-0.5.1.
|
|
204
|
+
letta_nightly-0.5.1.dev20241104104148.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
|
|
205
|
+
letta_nightly-0.5.1.dev20241104104148.dist-info/METADATA,sha256=VksBbdW6vMWGlxrthoZ1SO72H0_jEj9alL1jkCVYhf8,10773
|
|
206
|
+
letta_nightly-0.5.1.dev20241104104148.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
207
|
+
letta_nightly-0.5.1.dev20241104104148.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
|
|
208
|
+
letta_nightly-0.5.1.dev20241104104148.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|