managed-deepagents 0.10.7.dev3__py3-none-win_amd64.whl → 0.10.7.dev4__py3-none-win_amd64.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.
- managed_deepagents/_binaries/mda.exe +0 -0
- managed_deepagents/_sandbox_binding.py +24 -4
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/METADATA +1 -1
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/RECORD +8 -8
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -13,6 +13,7 @@ its sandbox.
|
|
|
13
13
|
from __future__ import annotations
|
|
14
14
|
|
|
15
15
|
import asyncio
|
|
16
|
+
import socket
|
|
16
17
|
from collections.abc import Mapping
|
|
17
18
|
from datetime import UTC, datetime
|
|
18
19
|
|
|
@@ -89,11 +90,24 @@ def _read_error(thread_id: str, error: Exception) -> RuntimeError:
|
|
|
89
90
|
)
|
|
90
91
|
|
|
91
92
|
|
|
93
|
+
# TODO(MDAC-311): remove this fallback. https://linear.app/langchain/issue/MDAC-311
|
|
94
|
+
def _host_not_found(error: BaseException) -> bool:
|
|
95
|
+
cause: BaseException | None = error
|
|
96
|
+
for _ in range(4):
|
|
97
|
+
if cause is None:
|
|
98
|
+
return False
|
|
99
|
+
if isinstance(cause, socket.gaierror):
|
|
100
|
+
return cause.errno in (socket.EAI_NONAME, socket.EAI_NODATA)
|
|
101
|
+
cause = cause.__cause__ or cause.__context__
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
|
|
92
105
|
def read_bound_sandboxes(thread_id: str, *, deployed: bool) -> dict[str, str | None] | None:
|
|
93
|
-
"""The thread's bound sandboxes
|
|
106
|
+
"""The thread's bound sandboxes.
|
|
94
107
|
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
``None`` outside a deployed Agent Server, or when the Agent Server's own
|
|
109
|
+
host name doesn't exist. Any other failed read raises: without the record,
|
|
110
|
+
MDA can't tell a new thread from one whose sandbox is gone.
|
|
97
111
|
"""
|
|
98
112
|
try:
|
|
99
113
|
url, headers = _thread_request(thread_id)
|
|
@@ -105,7 +119,13 @@ def read_bound_sandboxes(thread_id: str, *, deployed: bool) -> dict[str, str | N
|
|
|
105
119
|
with _thread_client() as client:
|
|
106
120
|
thread = _get_thread(client, url, headers)
|
|
107
121
|
except Exception as error:
|
|
108
|
-
|
|
122
|
+
if not _host_not_found(error):
|
|
123
|
+
raise _read_error(thread_id, error) from error
|
|
124
|
+
logger.warning(
|
|
125
|
+
"Agent Server host name not found; opening thread %s's sandbox without a binding",
|
|
126
|
+
thread_id,
|
|
127
|
+
)
|
|
128
|
+
return None
|
|
109
129
|
return bound_sandboxes(thread.get("metadata") if isinstance(thread, Mapping) else None)
|
|
110
130
|
|
|
111
131
|
|
{managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.10.7.
|
|
3
|
+
Version: 0.10.7.dev4
|
|
4
4
|
Summary: Managed Deep Agents — the define_deep_agent authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.
|
|
5
5
|
Author: LangChain
|
|
6
6
|
License: MIT
|
{managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/RECORD
RENAMED
|
@@ -36,7 +36,7 @@ managed_deepagents/_routes.py,sha256=TeReerf8TLpUtm95nuHWoT0fK3FVl3v3nhzO-vUpsPA
|
|
|
36
36
|
managed_deepagents/_run_input.py,sha256=qIDhlACuMeNF3SHj9zWG0MJRUFYZiQORn-cWQfuM-Qc,19035
|
|
37
37
|
managed_deepagents/_run_local.py,sha256=pKGh_JKUW8RaTFy9EpBor893KCjBV2cCJZzsiBCeaWA,2852
|
|
38
38
|
managed_deepagents/_runtime_schedules.py,sha256=Tjz7rohzv6SDg1jE1W1CugVSZSjiKtNBu22bfDlZPN8,30426
|
|
39
|
-
managed_deepagents/_sandbox_binding.py,sha256=
|
|
39
|
+
managed_deepagents/_sandbox_binding.py,sha256=hmLb3hLqc3cyOBYnh3hw7UFPy3g3jsVx3SWuiNPOqkE,6253
|
|
40
40
|
managed_deepagents/_sandbox_proxy.py,sha256=sfAl9-Yh8CwHEjOx1izxKsGTX7qDfKcH2qMrZdpuveg,10332
|
|
41
41
|
managed_deepagents/_sandbox_run.py,sha256=PTpaB45LOfA76fixca9ePOxf1wrt3a_Ki-FseG0FTF4,4376
|
|
42
42
|
managed_deepagents/_schedule_auth.py,sha256=AeIqTg9zbVc62JPefjVwpWmilnZq12J05p1z8JqVX98,32465
|
|
@@ -58,7 +58,7 @@ managed_deepagents/run_context.py,sha256=IayZdcpPrKVss70Hro8qI-EWtL94HZt4JKefzec
|
|
|
58
58
|
managed_deepagents/runtime.py,sha256=anZDsklEhV8Wfe2ERXawf099voNflZNRtS124-SJGt8,152846
|
|
59
59
|
managed_deepagents/sandbox.py,sha256=PQPXXjFts31HUgfrIVNEhvfe-SRQb5-BSY-Fj70NA74,7298
|
|
60
60
|
managed_deepagents/schedules.py,sha256=z_OlmZ7hW7LdvWLem-BiA131nHwFvUDSW_0-ObzU_G4,6039
|
|
61
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
61
|
+
managed_deepagents/_binaries/mda.exe,sha256=AV0HM7WtxbSR3pqJzUrqsNxQzZXfjZEEU1ceMWLHqCk,6018560
|
|
62
62
|
managed_deepagents/_channels/__init__.py,sha256=mMgqza7EWRjhJM0lXlFd-W6wBYZrFkpLQ4_30Bpij7k,249
|
|
63
63
|
managed_deepagents/_channels/actor.py,sha256=3d_1-ia6vwVjXkw7PYn5gg6BjnlPwRXW4nW2C5vAO7c,5203
|
|
64
64
|
managed_deepagents/_channels/assistant_text.py,sha256=nf00-KJXNev-e_TkAK_8SBI3J9TiOis1GkGV_zT5048,8472
|
|
@@ -167,9 +167,9 @@ managed_deepagents/identity/__init__.py,sha256=uZUKDHtfBc0n-T2xoJEFMqMplmXwAK7hb
|
|
|
167
167
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
168
168
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
169
169
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
170
|
-
managed_deepagents-0.10.7.
|
|
171
|
-
managed_deepagents-0.10.7.
|
|
172
|
-
managed_deepagents-0.10.7.
|
|
173
|
-
managed_deepagents-0.10.7.
|
|
174
|
-
managed_deepagents-0.10.7.
|
|
175
|
-
managed_deepagents-0.10.7.
|
|
170
|
+
managed_deepagents-0.10.7.dev4.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
171
|
+
managed_deepagents-0.10.7.dev4.dist-info/METADATA,sha256=xI51xZ_-fnXIUavaxTAlqxgL3xsu_AFtgQemJkQS618,100913
|
|
172
|
+
managed_deepagents-0.10.7.dev4.dist-info/WHEEL,sha256=bhMFZwp6VMtrbl2Ck6PlXryKaCggO1NzYn_HcFbBF1I,97
|
|
173
|
+
managed_deepagents-0.10.7.dev4.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
174
|
+
managed_deepagents-0.10.7.dev4.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
175
|
+
managed_deepagents-0.10.7.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.10.7.dev3.dist-info → managed_deepagents-0.10.7.dev4.dist-info}/top_level.txt
RENAMED
|
File without changes
|