managed-deepagents 0.7.2.dev4__py3-none-win_amd64.whl → 0.7.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/_binaries/mda.exe +0 -0
- managed_deepagents/runtime.py +25 -6
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/METADATA +1 -1
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/RECORD +8 -8
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/top_level.txt +0 -0
|
Binary file
|
managed_deepagents/runtime.py
CHANGED
|
@@ -123,6 +123,7 @@ class CompiledAgent(Protocol):
|
|
|
123
123
|
|
|
124
124
|
__all__ = [
|
|
125
125
|
"MANAGED_RECURSION_LIMIT",
|
|
126
|
+
"MANAGED_SKILLS_PATH",
|
|
126
127
|
"RECIPE_SNAPSHOT_ENV",
|
|
127
128
|
"build_managed_auth",
|
|
128
129
|
"build_managed_http_app",
|
|
@@ -157,6 +158,13 @@ __all__ = [
|
|
|
157
158
|
#: need the same patch today.
|
|
158
159
|
MANAGED_RECURSION_LIMIT = 200
|
|
159
160
|
|
|
161
|
+
#: Backend path the runtime mounts the project's skills at.
|
|
162
|
+
#:
|
|
163
|
+
#: Local/deploy route this to the Context Hub mock or repo; an eval trial resolves
|
|
164
|
+
#: it against the trial workspace, where the Harbor adapter has copied the
|
|
165
|
+
#: compiled project (so it reads the project's own ``skills/`` tree).
|
|
166
|
+
MANAGED_SKILLS_PATH = "/skills/"
|
|
167
|
+
|
|
160
168
|
#: Deployment secret naming the recipe snapshot baked at ``mda deploy``.
|
|
161
169
|
#: Mirrors TypeScript ``RECIPE_SNAPSHOT_ENV``.
|
|
162
170
|
RECIPE_SNAPSHOT_ENV = "MDA_SANDBOX_RECIPE_SNAPSHOT"
|
|
@@ -584,7 +592,6 @@ def compile_managed_agent(
|
|
|
584
592
|
merged,
|
|
585
593
|
context_backend=context.backend,
|
|
586
594
|
sandbox_backend=sandbox_backend,
|
|
587
|
-
has_skills=has_skills,
|
|
588
595
|
memory=memory,
|
|
589
596
|
)
|
|
590
597
|
else:
|
|
@@ -594,6 +601,13 @@ def compile_managed_agent(
|
|
|
594
601
|
if sandbox_backend is not None:
|
|
595
602
|
merged["backend"] = sandbox_backend
|
|
596
603
|
|
|
604
|
+
# Mounted the same way in every mode, but resolved against different roots:
|
|
605
|
+
# local/deploy route ``/skills/`` to the Context Hub mock or repo, while an
|
|
606
|
+
# eval trial reads the project's own ``skills/`` tree, which the Harbor
|
|
607
|
+
# adapter copies into the trial workspace the backend is rooted at.
|
|
608
|
+
if has_skills:
|
|
609
|
+
merged["skills"] = [MANAGED_SKILLS_PATH]
|
|
610
|
+
|
|
597
611
|
# Connectors: run each connector's ``tools`` hook and append the results to
|
|
598
612
|
# the authored tools. The author never imports the MCP client or calls
|
|
599
613
|
# ``get_tools()`` — MDA owns the connector lifecycle.
|
|
@@ -677,13 +691,13 @@ def _apply_managed_context(
|
|
|
677
691
|
*,
|
|
678
692
|
context_backend: BackendProtocol,
|
|
679
693
|
sandbox_backend: object | None,
|
|
680
|
-
has_skills: bool,
|
|
681
694
|
memory: MemoryDefinitionLike | None,
|
|
682
695
|
) -> bool:
|
|
683
|
-
"""Wire system prompt, backend routes, permissions,
|
|
696
|
+
"""Wire system prompt, backend routes, permissions, and hot memory.
|
|
684
697
|
|
|
685
698
|
Returns whether a hot memory path was mounted, which gates the memory-policy
|
|
686
|
-
middleware installed by the caller.
|
|
699
|
+
middleware installed by the caller. Skills are mounted by the caller: they do
|
|
700
|
+
not depend on a Context Hub route, so eval trials mount them too.
|
|
687
701
|
"""
|
|
688
702
|
filesystem_permission_cls = cast(
|
|
689
703
|
"FilesystemPermissionFactory",
|
|
@@ -733,8 +747,6 @@ def _apply_managed_context(
|
|
|
733
747
|
merged.get("permissions"),
|
|
734
748
|
filesystem_permission_cls,
|
|
735
749
|
)
|
|
736
|
-
if has_skills:
|
|
737
|
-
merged["skills"] = ["/skills/"]
|
|
738
750
|
hot = hot_memory_paths(memory_slices)
|
|
739
751
|
if hot:
|
|
740
752
|
merged["memory"] = hot
|
|
@@ -759,6 +771,7 @@ def compile_managed_agent_for_eval(
|
|
|
759
771
|
config: ManagedRunConfig | Mapping[str, object] | None = None,
|
|
760
772
|
*,
|
|
761
773
|
system_prompt: str | None = None,
|
|
774
|
+
has_skills: bool = False,
|
|
762
775
|
connectors: list[Connector] | None = None,
|
|
763
776
|
identity: IdentityDefinitionLike | None = None,
|
|
764
777
|
model_override: str | None = None,
|
|
@@ -771,6 +784,11 @@ def compile_managed_agent_for_eval(
|
|
|
771
784
|
see outputs like ``/app/answer.txt`` — without this, deepagents defaults to
|
|
772
785
|
StateBackend and writes stay in virtual agent state.
|
|
773
786
|
|
|
787
|
+
``has_skills`` mounts the project's skills the way dev and deploy do. There is
|
|
788
|
+
no Context Hub here: the trial backend is rooted at the workspace the adapter
|
|
789
|
+
copied the compiled project into, so :data:`MANAGED_SKILLS_PATH` resolves to
|
|
790
|
+
the project's own ``skills/`` tree.
|
|
791
|
+
|
|
774
792
|
The model override is applied to a copied definition so normal dev/deploy
|
|
775
793
|
behavior remains unchanged.
|
|
776
794
|
"""
|
|
@@ -798,6 +816,7 @@ def compile_managed_agent_for_eval(
|
|
|
798
816
|
DeepAgentDefinition(merged),
|
|
799
817
|
config,
|
|
800
818
|
system_prompt=system_prompt,
|
|
819
|
+
has_skills=has_skills,
|
|
801
820
|
connectors=connectors,
|
|
802
821
|
identity=identity,
|
|
803
822
|
# Eval trials never mount durable memory: this path takes no ``memory``
|
{managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.7.2.
|
|
3
|
+
Version: 0.7.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
|
|
@@ -26,10 +26,10 @@ managed_deepagents/define_deep_agent.py,sha256=17VfiiBINyhlqlATHrlJRPihKVlBsDGDP
|
|
|
26
26
|
managed_deepagents/define_memory.py,sha256=n7Ya20dWGvwbZOkPIXoa68nTnJie8tpKEkRwfJQt_fU,5036
|
|
27
27
|
managed_deepagents/namespaces.py,sha256=69i9hHAn9_jq76PPb2kPlbEpCbMylXUS5xPRDO89JFo,4461
|
|
28
28
|
managed_deepagents/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
29
|
-
managed_deepagents/runtime.py,sha256=
|
|
29
|
+
managed_deepagents/runtime.py,sha256=SR1ENRmjt2RZW0JSR9KZAv6ZKJ8DJpPZwcoQwY5ugVU,66847
|
|
30
30
|
managed_deepagents/sandbox.py,sha256=xlpcWa6CoVX6GKip2nK-0Lw-HBCoFGFYm0r4x9eYwcY,2530
|
|
31
31
|
managed_deepagents/schedules.py,sha256=MtTQN4tlm1NizFDCjZZv_huGfbQx-dj9WP1dIBybCug,5237
|
|
32
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
32
|
+
managed_deepagents/_binaries/mda.exe,sha256=IB2O1Q9un-zZIi8eBSjHco3K-WCocxtFTReVPJ-MdB0,3931136
|
|
33
33
|
managed_deepagents/_channels/__init__.py,sha256=Z6eXmzaLxG09DSyJoY_CX34axcsBo9gSJ0G7pRm2D6M,1216
|
|
34
34
|
managed_deepagents/_channels/assistant_text.py,sha256=f-Z3J3PlQFXZHztgBxlRoqB2LigU1Hj1YpwoXBMTR18,2171
|
|
35
35
|
managed_deepagents/_channels/binding.py,sha256=6vAKbWpg-eyLErJ0SsozH4mZc50hA1NhquM63mVmWDQ,3423
|
|
@@ -70,9 +70,9 @@ managed_deepagents/identity/__init__.py,sha256=RKuFKCN3Ui2ggUzdntYhnEdZRf-vT1khU
|
|
|
70
70
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
71
71
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
72
72
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
73
|
-
managed_deepagents-0.7.2.
|
|
74
|
-
managed_deepagents-0.7.2.
|
|
75
|
-
managed_deepagents-0.7.2.
|
|
76
|
-
managed_deepagents-0.7.2.
|
|
77
|
-
managed_deepagents-0.7.2.
|
|
78
|
-
managed_deepagents-0.7.2.
|
|
73
|
+
managed_deepagents-0.7.2.dev6.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
74
|
+
managed_deepagents-0.7.2.dev6.dist-info/METADATA,sha256=5aARcb81LVHeNgjmxo2N2o4jPHSsQUdzh1KPvEqebVs,13935
|
|
75
|
+
managed_deepagents-0.7.2.dev6.dist-info/WHEEL,sha256=3I5VVWZdsFlU417aCS2bMRuerS8wsfvBq99MyatBV3A,97
|
|
76
|
+
managed_deepagents-0.7.2.dev6.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
77
|
+
managed_deepagents-0.7.2.dev6.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
78
|
+
managed_deepagents-0.7.2.dev6.dist-info/RECORD,,
|
|
File without changes
|
{managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{managed_deepagents-0.7.2.dev4.dist-info → managed_deepagents-0.7.2.dev6.dist-info}/top_level.txt
RENAMED
|
File without changes
|