managed-deepagents 0.10.2.dev5__py3-none-win_amd64.whl → 0.10.2.dev6__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/__init__.py +3 -1
- managed_deepagents/_binaries/mda.exe +0 -0
- managed_deepagents/runtime.py +4 -0
- managed_deepagents/sandbox.py +27 -1
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/METADATA +4 -1
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/RECORD +10 -10
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/top_level.txt +0 -0
managed_deepagents/__init__.py
CHANGED
|
@@ -208,7 +208,7 @@ if TYPE_CHECKING:
|
|
|
208
208
|
PromptResponse,
|
|
209
209
|
SlackPromptResponse,
|
|
210
210
|
)
|
|
211
|
-
from managed_deepagents.sandbox import SandboxDefinition, basic, bearer
|
|
211
|
+
from managed_deepagents.sandbox import SandboxDefinition, basic, bearer, open_sandbox
|
|
212
212
|
from managed_deepagents.schedules import define_schedule
|
|
213
213
|
|
|
214
214
|
# Each export loads on first use (PEP 562), so a service that only needs the
|
|
@@ -371,6 +371,7 @@ _EXPORTS: dict[str, str] = {
|
|
|
371
371
|
"define_memory": "managed_deepagents.define_memory",
|
|
372
372
|
"define_sandbox": "managed_deepagents.namespaces",
|
|
373
373
|
"define_schedule": "managed_deepagents.schedules",
|
|
374
|
+
"open_sandbox": "managed_deepagents.sandbox",
|
|
374
375
|
"schedules": "managed_deepagents._runtime_schedules",
|
|
375
376
|
}
|
|
376
377
|
|
|
@@ -575,5 +576,6 @@ __all__ = [
|
|
|
575
576
|
"define_memory",
|
|
576
577
|
"define_sandbox",
|
|
577
578
|
"define_schedule",
|
|
579
|
+
"open_sandbox",
|
|
578
580
|
"schedules",
|
|
579
581
|
]
|
|
Binary file
|
managed_deepagents/runtime.py
CHANGED
|
@@ -2052,6 +2052,10 @@ class _LazyManagedSandboxBackend(SandboxBackendProtocol):
|
|
|
2052
2052
|
except TypeError:
|
|
2053
2053
|
return await self._acall(lambda backend: backend.aexecute(command), execute=True)
|
|
2054
2054
|
|
|
2055
|
+
async def aopen(self) -> str:
|
|
2056
|
+
"""Adopt or create this thread's sandbox now, as its first use would; return its name."""
|
|
2057
|
+
return (await self._abackend()).id
|
|
2058
|
+
|
|
2055
2059
|
def _config(self) -> ManagedRunConfig | None:
|
|
2056
2060
|
return _effective_sandbox_run_config(
|
|
2057
2061
|
self._source.run_config, bound_configurable=self._bound_configurable
|
managed_deepagents/sandbox.py
CHANGED
|
@@ -7,10 +7,13 @@ resolution, per-thread reuse, deploy-time snapshot bake, and lifecycle.
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
9
|
from dataclasses import dataclass
|
|
10
|
-
from typing import ClassVar, Literal, TypedDict
|
|
10
|
+
from typing import TYPE_CHECKING, ClassVar, Literal, TypedDict
|
|
11
11
|
|
|
12
12
|
from managed_deepagents._connections import ConnectionReference, is_connection_reference
|
|
13
13
|
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from managed_deepagents.runtime import _LazyManagedSandboxBackend
|
|
16
|
+
|
|
14
17
|
|
|
15
18
|
@dataclass(frozen=True, repr=False)
|
|
16
19
|
class ConnectionHeader:
|
|
@@ -132,6 +135,28 @@ def normalize_sandbox_options(options: dict[str, object]) -> dict[str, object]:
|
|
|
132
135
|
return normalized
|
|
133
136
|
|
|
134
137
|
|
|
138
|
+
async def open_sandbox(backend: object) -> str:
|
|
139
|
+
"""Adopt or create the run's managed sandbox now and return its name.
|
|
140
|
+
|
|
141
|
+
``backend`` is ``runtime.backend``. Without this call, the sandbox opens on
|
|
142
|
+
its first use.
|
|
143
|
+
"""
|
|
144
|
+
return await _managed_sandbox(backend).aopen()
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def _managed_sandbox(backend: object) -> _LazyManagedSandboxBackend:
|
|
148
|
+
"""The run's managed sandbox behind ``runtime.backend``, which tools may see composited."""
|
|
149
|
+
from deepagents.backends import CompositeBackend # noqa: PLC0415
|
|
150
|
+
|
|
151
|
+
from managed_deepagents.runtime import _LazyManagedSandboxBackend # noqa: PLC0415
|
|
152
|
+
|
|
153
|
+
while isinstance(backend, CompositeBackend):
|
|
154
|
+
backend = backend.default
|
|
155
|
+
if not isinstance(backend, _LazyManagedSandboxBackend):
|
|
156
|
+
raise TypeError("This run has no managed sandbox")
|
|
157
|
+
return backend
|
|
158
|
+
|
|
159
|
+
|
|
135
160
|
__all__ = [
|
|
136
161
|
"ConnectionHeader",
|
|
137
162
|
"ProxyAccessControl",
|
|
@@ -142,4 +167,5 @@ __all__ = [
|
|
|
142
167
|
"basic",
|
|
143
168
|
"bearer",
|
|
144
169
|
"normalize_sandbox_options",
|
|
170
|
+
"open_sandbox",
|
|
145
171
|
]
|
{managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.10.2.
|
|
3
|
+
Version: 0.10.2.dev6
|
|
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
|
|
@@ -1746,6 +1746,9 @@ Python also has async methods such as `aread`, `awrite`, and `adelete`.
|
|
|
1746
1746
|
All paths refer to the current sandbox. Context Hub routes for skills and
|
|
1747
1747
|
memory are not part of this backend.
|
|
1748
1748
|
|
|
1749
|
+
The sandbox opens on its first use. `open_sandbox(runtime.backend)` opens it
|
|
1750
|
+
now and returns its name.
|
|
1751
|
+
|
|
1749
1752
|
Private published images can declare registry credentials by environment
|
|
1750
1753
|
variable name; MDA creates or updates the deployment-owned Host registry:
|
|
1751
1754
|
|
{managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
managed_deepagents/__init__.py,sha256=
|
|
1
|
+
managed_deepagents/__init__.py,sha256=TrCm3-A0qXJLpEvOprzB9vqv-WFBovSqFeH9NVw0Hkc,22650
|
|
2
2
|
managed_deepagents/__main__.py,sha256=GcjmqN0Ea5v8OHKMxYToasm3eCX_doSLOlpEzAi1tAw,67
|
|
3
3
|
managed_deepagents/_agent_auth.py,sha256=RrPCIXxCZWCJmsmH-qCugCwlBrIIOKD76siJQOp3ZcI,21573
|
|
4
4
|
managed_deepagents/_agent_auth_http.py,sha256=xJzhauBcgFchDKjKHY-GuVIhNEP9e0WIPqUqEXzOx8A,7306
|
|
@@ -47,10 +47,10 @@ managed_deepagents/define_memory.py,sha256=0DzI9jxr83YJ6mEhqXRbIYzgWpl259-PdAMoA
|
|
|
47
47
|
managed_deepagents/namespaces.py,sha256=qt41OhCK2mNEDuFwyQ0lkeT5bL0guzv9aRyK3Z-GbVg,4531
|
|
48
48
|
managed_deepagents/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
49
49
|
managed_deepagents/run_context.py,sha256=IayZdcpPrKVss70Hro8qI-EWtL94HZt4JKefzec9qds,3562
|
|
50
|
-
managed_deepagents/runtime.py,sha256=
|
|
51
|
-
managed_deepagents/sandbox.py,sha256=
|
|
50
|
+
managed_deepagents/runtime.py,sha256=ID3jCEgtxtVyZ8ePKbc4FW4hwh3mwEtndCFl_o60tUY,114229
|
|
51
|
+
managed_deepagents/sandbox.py,sha256=OAZ9BsvuJIIgvE51YR2tL7rwFcjE4q1RaR2dVfNkBzY,5647
|
|
52
52
|
managed_deepagents/schedules.py,sha256=XROsDs-QwCWH0yEwakIN5Rhl5aM06eZX5-JFJ-KG1To,5898
|
|
53
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
53
|
+
managed_deepagents/_binaries/mda.exe,sha256=dfSqL8aFeiXzeEcGlIS49cEM9pKKUVunxN9hkVKJZCs,5123072
|
|
54
54
|
managed_deepagents/_channels/__init__.py,sha256=mMgqza7EWRjhJM0lXlFd-W6wBYZrFkpLQ4_30Bpij7k,249
|
|
55
55
|
managed_deepagents/_channels/actor.py,sha256=3d_1-ia6vwVjXkw7PYn5gg6BjnlPwRXW4nW2C5vAO7c,5203
|
|
56
56
|
managed_deepagents/_channels/assistant_text.py,sha256=nf00-KJXNev-e_TkAK_8SBI3J9TiOis1GkGV_zT5048,8472
|
|
@@ -151,9 +151,9 @@ managed_deepagents/identity/__init__.py,sha256=uZUKDHtfBc0n-T2xoJEFMqMplmXwAK7hb
|
|
|
151
151
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
152
152
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
153
153
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
154
|
-
managed_deepagents-0.10.2.
|
|
155
|
-
managed_deepagents-0.10.2.
|
|
156
|
-
managed_deepagents-0.10.2.
|
|
157
|
-
managed_deepagents-0.10.2.
|
|
158
|
-
managed_deepagents-0.10.2.
|
|
159
|
-
managed_deepagents-0.10.2.
|
|
154
|
+
managed_deepagents-0.10.2.dev6.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
155
|
+
managed_deepagents-0.10.2.dev6.dist-info/METADATA,sha256=bvw-eJlzFYHqII5v87QYXmVdBgqtRhd7up_Fvwnf_Lk,93019
|
|
156
|
+
managed_deepagents-0.10.2.dev6.dist-info/WHEEL,sha256=bhMFZwp6VMtrbl2Ck6PlXryKaCggO1NzYn_HcFbBF1I,97
|
|
157
|
+
managed_deepagents-0.10.2.dev6.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
158
|
+
managed_deepagents-0.10.2.dev6.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
159
|
+
managed_deepagents-0.10.2.dev6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.10.2.dev5.dist-info → managed_deepagents-0.10.2.dev6.dist-info}/top_level.txt
RENAMED
|
File without changes
|