letta-nightly 0.6.3.dev20241213104231__py3-none-any.whl → 0.6.4.dev20241213193437__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 +1 -1
- letta/server/server.py +0 -2
- letta/services/tool_execution_sandbox.py +4 -4
- {letta_nightly-0.6.3.dev20241213104231.dist-info → letta_nightly-0.6.4.dev20241213193437.dist-info}/METADATA +1 -1
- {letta_nightly-0.6.3.dev20241213104231.dist-info → letta_nightly-0.6.4.dev20241213193437.dist-info}/RECORD +8 -8
- {letta_nightly-0.6.3.dev20241213104231.dist-info → letta_nightly-0.6.4.dev20241213193437.dist-info}/LICENSE +0 -0
- {letta_nightly-0.6.3.dev20241213104231.dist-info → letta_nightly-0.6.4.dev20241213193437.dist-info}/WHEEL +0 -0
- {letta_nightly-0.6.3.dev20241213104231.dist-info → letta_nightly-0.6.4.dev20241213193437.dist-info}/entry_points.txt +0 -0
letta/__init__.py
CHANGED
letta/server/server.py
CHANGED
|
@@ -1954,8 +1954,6 @@ class SyncServer(Server):
|
|
|
1954
1954
|
# Next, attempt to run the tool with the sandbox
|
|
1955
1955
|
try:
|
|
1956
1956
|
sandbox_run_result = ToolExecutionSandbox(tool.name, tool_args_dict, user_id, tool_object=tool).run(agent_state=agent_state)
|
|
1957
|
-
if sandbox_run_result is None:
|
|
1958
|
-
raise ValueError(f"Tool with id {tool.id} returned execution with None")
|
|
1959
1957
|
function_response = str(sandbox_run_result.func_return)
|
|
1960
1958
|
stdout = [s for s in sandbox_run_result.stdout if s.strip()]
|
|
1961
1959
|
stderr = [s for s in sandbox_run_result.stderr if s.strip()]
|
|
@@ -62,7 +62,7 @@ class ToolExecutionSandbox:
|
|
|
62
62
|
self.sandbox_config_manager = SandboxConfigManager(tool_settings)
|
|
63
63
|
self.force_recreate = force_recreate
|
|
64
64
|
|
|
65
|
-
def run(self, agent_state: Optional[AgentState] = None) ->
|
|
65
|
+
def run(self, agent_state: Optional[AgentState] = None) -> SandboxRunResult:
|
|
66
66
|
"""
|
|
67
67
|
Run the tool in a sandbox environment.
|
|
68
68
|
|
|
@@ -101,7 +101,7 @@ class ToolExecutionSandbox:
|
|
|
101
101
|
os.environ.clear()
|
|
102
102
|
os.environ.update(original_env) # Restore original environment variables
|
|
103
103
|
|
|
104
|
-
def run_local_dir_sandbox(self, agent_state: AgentState) ->
|
|
104
|
+
def run_local_dir_sandbox(self, agent_state: AgentState) -> SandboxRunResult:
|
|
105
105
|
sbx_config = self.sandbox_config_manager.get_or_create_default_sandbox_config(sandbox_type=SandboxType.LOCAL, actor=self.user)
|
|
106
106
|
local_configs = sbx_config.get_local_config()
|
|
107
107
|
|
|
@@ -266,7 +266,7 @@ class ToolExecutionSandbox:
|
|
|
266
266
|
|
|
267
267
|
# e2b sandbox specific functions
|
|
268
268
|
|
|
269
|
-
def run_e2b_sandbox(self, agent_state: AgentState) ->
|
|
269
|
+
def run_e2b_sandbox(self, agent_state: AgentState) -> SandboxRunResult:
|
|
270
270
|
sbx_config = self.sandbox_config_manager.get_or_create_default_sandbox_config(sandbox_type=SandboxType.E2B, actor=self.user)
|
|
271
271
|
sbx = self.get_running_e2b_sandbox_with_same_state(sbx_config)
|
|
272
272
|
if not sbx or self.force_recreate:
|
|
@@ -286,7 +286,7 @@ class ToolExecutionSandbox:
|
|
|
286
286
|
execution.logs.stderr.append(execution.error.traceback)
|
|
287
287
|
execution.logs.stderr.append(f"{execution.error.name}: {execution.error.value}")
|
|
288
288
|
elif len(execution.results) == 0:
|
|
289
|
-
|
|
289
|
+
raise ValueError(f"Tool {self.tool_name} returned execution with None")
|
|
290
290
|
else:
|
|
291
291
|
func_return, agent_state = self.parse_best_effort(execution.results[0].text)
|
|
292
292
|
return SandboxRunResult(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta/__init__.py,sha256=
|
|
1
|
+
letta/__init__.py,sha256=HhoGD05NVfjhVuOqEFBeOUocT9t7QMVcuvZSi-v8eoo,1035
|
|
2
2
|
letta/__main__.py,sha256=6Hs2PV7EYc5Tid4g4OtcLXhqVHiNYTGzSBdoOnW2HXA,29
|
|
3
3
|
letta/agent.py,sha256=qyhY89tylfFfXytlNdoKIlmlKDJMxKqX01tlVv81inY,78012
|
|
4
4
|
letta/benchmark/benchmark.py,sha256=ebvnwfp3yezaXOQyGXkYCDYpsmre-b9hvNtnyx4xkG0,3701
|
|
@@ -195,7 +195,7 @@ letta/server/rest_api/routers/v1/tools.py,sha256=ajYUo_cgUBDfm4Ja_EufxSdhBWoAb5N
|
|
|
195
195
|
letta/server/rest_api/routers/v1/users.py,sha256=M1wEr2IyHzuRwINYxLXTkrbAH3osLe_cWjzrWrzR1aw,3729
|
|
196
196
|
letta/server/rest_api/static_files.py,sha256=NG8sN4Z5EJ8JVQdj19tkFa9iQ1kBPTab9f_CUxd_u4Q,3143
|
|
197
197
|
letta/server/rest_api/utils.py,sha256=6Z0T0kHIwDAgTIFh38Q1JQ_nhANgdqXcSlsuY41pL6M,3158
|
|
198
|
-
letta/server/server.py,sha256=
|
|
198
|
+
letta/server/server.py,sha256=OEHnXsCR6iADYVmtsqliYUefvbtMVzsu_-T2stbPQyM,86467
|
|
199
199
|
letta/server/startup.sh,sha256=722uKJWB2C4q3vjn39De2zzPacaZNw_1fN1SpLGjKIo,1569
|
|
200
200
|
letta/server/static_files/assets/index-048c9598.js,sha256=mR16XppvselwKCcNgONs4L7kZEVa4OEERm4lNZYtLSk,146819
|
|
201
201
|
letta/server/static_files/assets/index-0e31b727.css,sha256=DjG3J3RSFLcinzoisOYYLiyTAIe5Uaxge3HE-DmQIsU,7688
|
|
@@ -219,7 +219,7 @@ letta/services/passage_manager.py,sha256=BbufA8pu6kwXlGYWt1wKZV6xRP5AoJcSx20bgVj
|
|
|
219
219
|
letta/services/per_agent_lock_manager.py,sha256=porM0cKKANQ1FvcGXOO_qM7ARk5Fgi1HVEAhXsAg9-4,546
|
|
220
220
|
letta/services/sandbox_config_manager.py,sha256=PqlS47FAYYmiUFd9bUV4W1t4FjhMqiDoh3Blw_1tiCM,13269
|
|
221
221
|
letta/services/source_manager.py,sha256=yfb6fYcuoit7d4-w62Mip4fpPbpl8EmTSQ-A49o3FeA,6596
|
|
222
|
-
letta/services/tool_execution_sandbox.py,sha256=
|
|
222
|
+
letta/services/tool_execution_sandbox.py,sha256=XaP3-Bsw1TJ-6btFdWJ_DwOnX6QOxE9o9mZVIXR4_4s,21090
|
|
223
223
|
letta/services/tool_manager.py,sha256=lfrfWyxiFUWcEf-nATHs7r76XWutMYbOPyePs543ZOo,7681
|
|
224
224
|
letta/services/tool_sandbox_env/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
225
225
|
letta/services/tools_agents_manager.py,sha256=kF6yIsUO154_Q3l-cEeSU56QW-VUr_M6B-9csqhHBkg,4847
|
|
@@ -229,8 +229,8 @@ letta/streaming_interface.py,sha256=_FPUWy58j50evHcpXyd7zB1wWqeCc71NCFeWh_TBvnw,
|
|
|
229
229
|
letta/streaming_utils.py,sha256=329fsvj1ZN0r0LpQtmMPZ2vSxkDBIUUwvGHZFkjm2I8,11745
|
|
230
230
|
letta/system.py,sha256=buKYPqG5n2x41hVmWpu6JUpyd7vTWED9Km2_M7dLrvk,6960
|
|
231
231
|
letta/utils.py,sha256=L8c6S77gyMYFgVP6ncGRaNbGjWtg6BOU_whI1vjt9Ts,32915
|
|
232
|
-
letta_nightly-0.6.
|
|
233
|
-
letta_nightly-0.6.
|
|
234
|
-
letta_nightly-0.6.
|
|
235
|
-
letta_nightly-0.6.
|
|
236
|
-
letta_nightly-0.6.
|
|
232
|
+
letta_nightly-0.6.4.dev20241213193437.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
|
|
233
|
+
letta_nightly-0.6.4.dev20241213193437.dist-info/METADATA,sha256=rOq5RNlWBK1_L_v4GlNMY24VAneBsBC17k6Oed4WshI,21689
|
|
234
|
+
letta_nightly-0.6.4.dev20241213193437.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
235
|
+
letta_nightly-0.6.4.dev20241213193437.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
|
|
236
|
+
letta_nightly-0.6.4.dev20241213193437.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|