langchain-agentx-python 0.2.2__py3-none-any.whl → 0.2.3__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.
- langchain_agentx/workspace/capabilities.py +4 -0
- langchain_agentx/workspace/config.py +11 -0
- {langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/METADATA +1 -1
- {langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/RECORD +7 -7
- {langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/LICENSE +0 -0
- {langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/WHEEL +0 -0
- {langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/top_level.txt +0 -0
|
@@ -58,6 +58,7 @@ class NodeWorkspaceOverrides:
|
|
|
58
58
|
"""节点级目录覆盖:影响单个节点,越界时抛 WorkspaceBoundaryError。"""
|
|
59
59
|
|
|
60
60
|
skills_dir: Optional[Path] = None
|
|
61
|
+
agents_dir: Optional[Path] = None
|
|
61
62
|
sessions_dir: Optional[Path] = None
|
|
62
63
|
memory_dir: Optional[Path] = None
|
|
63
64
|
|
|
@@ -66,6 +67,7 @@ class NodeWorkspaceOverrides:
|
|
|
66
67
|
base = workspace_root.resolve()
|
|
67
68
|
for name, path in (
|
|
68
69
|
("skills_dir", self.skills_dir),
|
|
70
|
+
("agents_dir", self.agents_dir),
|
|
69
71
|
("sessions_dir", self.sessions_dir),
|
|
70
72
|
("memory_dir", self.memory_dir),
|
|
71
73
|
):
|
|
@@ -83,6 +85,7 @@ class WorkspaceDefaults:
|
|
|
83
85
|
"""B 档默认值容器:节点未覆盖时使用。"""
|
|
84
86
|
|
|
85
87
|
default_skills_dir: Optional[Path] = None
|
|
88
|
+
default_agents_dir: Optional[Path] = None
|
|
86
89
|
default_sessions_dir: Optional[Path] = None
|
|
87
90
|
default_memory_dir: Optional[Path] = None
|
|
88
91
|
|
|
@@ -211,6 +214,7 @@ class RuntimeCapabilities:
|
|
|
211
214
|
).build()
|
|
212
215
|
effective_defaults = defaults or WorkspaceDefaults(
|
|
213
216
|
default_skills_dir=primary_home_dir / "skills",
|
|
217
|
+
default_agents_dir=primary_home_dir / "agents",
|
|
214
218
|
default_sessions_dir=primary_home_dir / "sessions",
|
|
215
219
|
default_memory_dir=primary_home_dir / "memory",
|
|
216
220
|
)
|
|
@@ -72,6 +72,17 @@ class AgentWorkspaceConfig:
|
|
|
72
72
|
return Path(self._defaults.default_skills_dir)
|
|
73
73
|
return self.agent_home_dir / "skills"
|
|
74
74
|
|
|
75
|
+
@property
|
|
76
|
+
def agents_dir(self) -> Path:
|
|
77
|
+
"""用户自定义 Agent 定义目录(Markdown 文件)。
|
|
78
|
+
AgentDefinitionLoader 从此目录加载 SubagentConfig(*.md)。
|
|
79
|
+
"""
|
|
80
|
+
if self._overrides is not None and self._overrides.agents_dir is not None:
|
|
81
|
+
return Path(self._overrides.agents_dir)
|
|
82
|
+
if self._defaults is not None and self._defaults.default_agents_dir is not None:
|
|
83
|
+
return Path(self._defaults.default_agents_dir)
|
|
84
|
+
return self.agent_home_dir / "agents"
|
|
85
|
+
|
|
75
86
|
@property
|
|
76
87
|
def worktrees_dir(self) -> Path:
|
|
77
88
|
return self.agent_home_dir / "worktrees"
|
|
@@ -419,13 +419,13 @@ langchain_agentx/workflow/patterns/orchestrator.py,sha256=FMO6OOjg6BEQS53UYbnVxn
|
|
|
419
419
|
langchain_agentx/workflow/patterns/parallelization.py,sha256=JxOxNS-SIN75koqzKZU_8UlfV2KzunUwvxAxwEA2T68,4924
|
|
420
420
|
langchain_agentx/workflow/patterns/routing.py,sha256=pSzEd-KQpPz0TfOYNvoekZB2p8gCgucnf1mPPG-R6tM,4201
|
|
421
421
|
langchain_agentx/workspace/__init__.py,sha256=hONzo22cLzsUFwwMGHEOBO6kD5DDg5WkrkfANrVDapA,977
|
|
422
|
-
langchain_agentx/workspace/capabilities.py,sha256=
|
|
423
|
-
langchain_agentx/workspace/config.py,sha256=
|
|
422
|
+
langchain_agentx/workspace/capabilities.py,sha256=e__waKm7LvE8s3k1TMVs3CQYpsEElMnFqWQ2s48mcdk,9518
|
|
423
|
+
langchain_agentx/workspace/config.py,sha256=K2XaAvlkBr5aA2mgH5zNxfAZg-LGmwwDVNcERIAllm8,7236
|
|
424
424
|
langchain_agentx/workspace/path_key_normalizer.py,sha256=ICk9uGiiNFH-zaXJG3_vx91uOpgWmgOPIjJoSYevKOc,1113
|
|
425
425
|
langchain_agentx/workspace/resolver.py,sha256=9-wRLLIC7KJCqu9i8nAL-gJ9lIWsTPOpjnZnZEGLunk,6281
|
|
426
426
|
langchain_agentx/workspace/validators.py,sha256=tQt-6TOcL8Fw7Ig5ebA9S7vGWh1rby920eFW6x8Tk9E,1439
|
|
427
|
-
langchain_agentx_python-0.2.
|
|
428
|
-
langchain_agentx_python-0.2.
|
|
429
|
-
langchain_agentx_python-0.2.
|
|
430
|
-
langchain_agentx_python-0.2.
|
|
431
|
-
langchain_agentx_python-0.2.
|
|
427
|
+
langchain_agentx_python-0.2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
428
|
+
langchain_agentx_python-0.2.3.dist-info/METADATA,sha256=56X_0NR_Gtta_hEjQPsgCPiFxTQOx0J8Q0Io1zXV8H0,20753
|
|
429
|
+
langchain_agentx_python-0.2.3.dist-info/WHEEL,sha256=51RkbunBAw4BWsgaQWTpPhg4Diwp3c9P5iaLk67Hdtg,92
|
|
430
|
+
langchain_agentx_python-0.2.3.dist-info/top_level.txt,sha256=Ge284pniNt8xea0OLk2o9o32GqVpDhOYk20fwE-0xxA,17
|
|
431
|
+
langchain_agentx_python-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{langchain_agentx_python-0.2.2.dist-info → langchain_agentx_python-0.2.3.dist-info}/top_level.txt
RENAMED
|
File without changes
|