loom-agent 0.3.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.
Files changed (52) hide show
  1. loom/__init__.py +1 -0
  2. loom/adapters/converters.py +77 -0
  3. loom/adapters/registry.py +43 -0
  4. loom/api/factory.py +77 -0
  5. loom/api/main.py +201 -0
  6. loom/builtin/__init__.py +3 -0
  7. loom/builtin/memory/__init__.py +3 -0
  8. loom/builtin/memory/metabolic.py +96 -0
  9. loom/builtin/memory/pso.py +41 -0
  10. loom/builtin/memory/sanitizers.py +39 -0
  11. loom/builtin/memory/validators.py +55 -0
  12. loom/config/tool.py +63 -0
  13. loom/infra/__init__.py +0 -0
  14. loom/infra/llm.py +44 -0
  15. loom/infra/logging.py +42 -0
  16. loom/infra/store.py +39 -0
  17. loom/infra/transport/memory.py +112 -0
  18. loom/infra/transport/nats.py +170 -0
  19. loom/infra/transport/redis.py +161 -0
  20. loom/interfaces/llm.py +45 -0
  21. loom/interfaces/memory.py +50 -0
  22. loom/interfaces/store.py +29 -0
  23. loom/interfaces/transport.py +35 -0
  24. loom/kernel/__init__.py +0 -0
  25. loom/kernel/base_interceptor.py +97 -0
  26. loom/kernel/bus.py +85 -0
  27. loom/kernel/dispatcher.py +58 -0
  28. loom/kernel/interceptors/__init__.py +14 -0
  29. loom/kernel/interceptors/adaptive.py +567 -0
  30. loom/kernel/interceptors/budget.py +60 -0
  31. loom/kernel/interceptors/depth.py +45 -0
  32. loom/kernel/interceptors/hitl.py +51 -0
  33. loom/kernel/interceptors/studio.py +129 -0
  34. loom/kernel/interceptors/timeout.py +27 -0
  35. loom/kernel/state.py +71 -0
  36. loom/memory/hierarchical.py +124 -0
  37. loom/node/__init__.py +0 -0
  38. loom/node/agent.py +252 -0
  39. loom/node/base.py +121 -0
  40. loom/node/crew.py +105 -0
  41. loom/node/router.py +77 -0
  42. loom/node/tool.py +50 -0
  43. loom/protocol/__init__.py +0 -0
  44. loom/protocol/cloudevents.py +73 -0
  45. loom/protocol/interfaces.py +164 -0
  46. loom/protocol/mcp.py +97 -0
  47. loom/protocol/memory_operations.py +51 -0
  48. loom/protocol/patch.py +93 -0
  49. loom_agent-0.3.3.dist-info/LICENSE +204 -0
  50. loom_agent-0.3.3.dist-info/METADATA +139 -0
  51. loom_agent-0.3.3.dist-info/RECORD +52 -0
  52. loom_agent-0.3.3.dist-info/WHEEL +4 -0
@@ -0,0 +1,51 @@
1
+ """
2
+ Protocols for Metabolic Memory Operations.
3
+ """
4
+
5
+ from typing import Any, Dict, List, Protocol, runtime_checkable
6
+
7
+ @runtime_checkable
8
+ class MemoryValidator(Protocol):
9
+ """
10
+ Protocol for assessing the value/importance of a memory entry.
11
+ """
12
+ async def validate(self, content: Any) -> float:
13
+ """
14
+ Return an importance score between 0.0 and 1.0.
15
+ """
16
+ ...
17
+
18
+ @runtime_checkable
19
+ class ContextSanitizer(Protocol):
20
+ """
21
+ Protocol for cleaning and summarizing context.
22
+ """
23
+ async def sanitize(self, context: str, target_token_limit: int) -> str:
24
+ """
25
+ Reduce context to meet token limit while preserving meaning.
26
+ """
27
+ ...
28
+
29
+ @runtime_checkable
30
+ class ProjectStateObject(Protocol):
31
+ """
32
+ Protocol for the Project State Object (PSO).
33
+ Maintains a structured representation of the current project state.
34
+ """
35
+ async def update(self, events: List[Dict[str, Any]]) -> None:
36
+ """
37
+ Update the state based on a list of recent events or memory entries.
38
+ """
39
+ ...
40
+
41
+ async def snapshot(self) -> Dict[str, Any]:
42
+ """
43
+ Return the current state as a dictionary.
44
+ """
45
+ ...
46
+
47
+ def to_markdown(self) -> str:
48
+ """
49
+ Return the state as a Markdown string (for LLM context).
50
+ """
51
+ ...
loom/protocol/patch.py ADDED
@@ -0,0 +1,93 @@
1
+ """
2
+ State Patch Protocol (JSON Patch / CRDT-like)
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from enum import Enum
8
+ from typing import Any, Dict, List, Optional, Union
9
+ from pydantic import BaseModel, Field, ConfigDict
10
+
11
+ class PatchOperation(str, Enum):
12
+ """JSON Patch Operations (RFC 6902)"""
13
+ ADD = "add"
14
+ REMOVE = "remove"
15
+ REPLACE = "replace"
16
+ MOVE = "move"
17
+ COPY = "copy"
18
+ TEST = "test"
19
+
20
+ class StatePatch(BaseModel):
21
+ """
22
+ Represents a single operation to modify the state.
23
+ """
24
+ op: PatchOperation
25
+ path: str # JSON Pointer, e.g., "/memory/short_term/0"
26
+ value: Optional[Any] = None
27
+ from_path: Optional[str] = Field(None, alias="from") # For move/copy
28
+
29
+ model_config = ConfigDict(populate_by_name=True)
30
+
31
+ def apply_patch(state: Union[Dict, List], patch: StatePatch) -> None:
32
+ """
33
+ Apply a single patch to the state (In-Place).
34
+ Simplified implementation supporting ADD, REPLACE, REMOVE.
35
+ """
36
+
37
+ # Parse path
38
+ tokens = [t for t in patch.path.split('/') if t]
39
+ if not tokens:
40
+ return # Root modification not supported directly on container usually
41
+
42
+ target = state
43
+ parent = None
44
+ key = None
45
+
46
+ # Navigate to target
47
+ for i, token in enumerate(tokens):
48
+ is_last = (i == len(tokens) - 1)
49
+
50
+ # Handle list index
51
+ if isinstance(target, list):
52
+ try:
53
+ idx = int(token)
54
+ key = idx
55
+ except ValueError:
56
+ if token == "-":
57
+ key = len(target) # Append
58
+ else:
59
+ raise ValueError(f"Invalid list index: {token}")
60
+ else:
61
+ key = token
62
+
63
+ if not is_last:
64
+ if isinstance(target, dict):
65
+ target = target.setdefault(key, {})
66
+ elif isinstance(target, list):
67
+ if key < len(target):
68
+ target = target[key]
69
+ else:
70
+ raise IndexError(f"List index out of range: {key}")
71
+ parent = target
72
+
73
+ # Apply operation
74
+ if patch.op == PatchOperation.ADD:
75
+ if isinstance(target, list):
76
+ if isinstance(key, int):
77
+ target.insert(key, patch.value)
78
+ elif isinstance(target, dict):
79
+ target[key] = patch.value
80
+
81
+ elif patch.op == PatchOperation.REPLACE:
82
+ if isinstance(target, list):
83
+ target[key] = patch.value
84
+ elif isinstance(target, dict):
85
+ target[key] = patch.value
86
+
87
+ elif patch.op == PatchOperation.REMOVE:
88
+ if isinstance(target, list):
89
+ target.pop(key)
90
+ elif isinstance(target, dict):
91
+ target.pop(key, None)
92
+
93
+ # TODO: Implement MOVE, COPY, TEST
@@ -0,0 +1,204 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright (c) 2025 Kongusen
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
191
+
192
+ ---
193
+
194
+ COMMONS CLAUSE
195
+
196
+ The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
197
+
198
+ Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
199
+
200
+ For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
201
+
202
+ Software: Loom Agent
203
+ Licensor: Kongusen
204
+ License: Apache License 2.0
@@ -0,0 +1,139 @@
1
+ Metadata-Version: 2.1
2
+ Name: loom-agent
3
+ Version: 0.3.3
4
+ Summary: Enterprise-grade recursive state machine agent framework with event sourcing, multi-agent collaboration, hierarchical memory, and RAG integration
5
+ Home-page: https://github.com/kongusen/loom-agent
6
+ License: Apache-2.0 with Commons Clause
7
+ Keywords: ai,llm,agent,multi-agent,rag,tooling,asyncio
8
+ Author: kongusen
9
+ Author-email: wanghaishan0210@gmail.com
10
+ Requires-Python: >=3.11,<4.0
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Framework :: AsyncIO
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: Other/Proprietary License
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Classifier: Topic :: Software Development :: Libraries
21
+ Classifier: Typing :: Typed
22
+ Provides-Extra: all
23
+ Provides-Extra: anthropic
24
+ Provides-Extra: llm
25
+ Provides-Extra: nats
26
+ Provides-Extra: redis
27
+ Provides-Extra: studio
28
+ Requires-Dist: nats-py (>=2.6.0,<3.0.0) ; extra == "nats" or extra == "all"
29
+ Requires-Dist: pydantic (>=2.5.0,<3.0.0)
30
+ Requires-Dist: pyyaml (>=6.0,<7.0)
31
+ Requires-Dist: redis (>=5.0.1,<6.0.0) ; extra == "redis" or extra == "all"
32
+ Requires-Dist: rich (>=13.7.0,<14.0.0)
33
+ Requires-Dist: websockets (>=12.0,<13.0) ; extra == "studio"
34
+ Project-URL: Documentation, https://github.com/kongusen/loom-agent#readme
35
+ Project-URL: Repository, https://github.com/kongusen/loom-agent
36
+ Description-Content-Type: text/markdown
37
+
38
+ # 🧵 Loom Agent
39
+
40
+ <div align="center">
41
+
42
+ **受控分形架构的 AI Agent 框架**
43
+ **Protocol-First • Metabolic Memory • Fractal Nodes**
44
+
45
+ [![PyPI](https://img.shields.io/pypi/v/loom-agent.svg)](https://pypi.org/project/loom-agent/)
46
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
47
+ [![License: Apache 2.0 + Commons Clause](https://img.shields.io/badge/License-Apache_2.0_with_Commons_Clause-red.svg)](LICENSE)
48
+
49
+ [English](README_EN.md) | **中文**
50
+
51
+ [📖 文档](docs/zh/index.md) | [🚀 快速开始](docs/zh/01_getting_started/quickstart.md) | [🧩 核心概念](docs/zh/02_core_concepts/index.md)
52
+
53
+ </div>
54
+
55
+ ---
56
+
57
+ ## 🎯 什么是 Loom?
58
+
59
+ Loom 是一个**高可靠 (High-Assurance)** 的 AI Agent 框架,专为构建生产级系统而设计。与其他专注于"快速原型"的框架不同,Loom 关注**控制 (Control)、持久化 (Persistence) 和分形扩展 (Fractal Scalability)**。
60
+
61
+ ### 核心特性 (v0.3.0)
62
+
63
+ 1. **🧬 受控分形架构 (Controlled Fractal)**:
64
+ * Agent、Tool、Crew 都是**节点 (Node)**。节点可以无限递归包含。
65
+ * 即便是最复杂的 Agent 集群,对外也表现为一个简单的函数调用。
66
+
67
+ 2. **🧠 新陈代谢记忆 (Metabolic Memory)**:
68
+ * 拒绝无限追加的上下文窗口。Loom 模拟生物代谢:**摄入 (Validate) -> 消化 (Sanitize) -> 同化 (PSO)**。
69
+ * 长期保持 Agent 的"思维清醒",防止上下文中毒。
70
+
71
+ 3. **🛡️ 协议优先 (Protocol-First)**:
72
+ * 基于 Python `typing.Protocol` 定义行为契约。
73
+ * 零依赖核心:你可以轻松替换 LLM Provider (OpenAI/Anthropic) 或 传输层 (Memory/Redis)。
74
+
75
+ 4. **⚡ 通用事件总线 (Universal Event Bus)**:
76
+ * 基于 CloudEvents 标准。
77
+ * 支持全链路追踪 (Tracing) 和 审计 (Auditing)。
78
+
79
+ ---
80
+
81
+ ## 📦 安装
82
+
83
+ ```bash
84
+ pip install loom-agent
85
+ ```
86
+
87
+ ## 🚀 快速上手
88
+
89
+ ```python
90
+ import asyncio
91
+ from loom.api.main import LoomApp
92
+ from loom.node.agent import AgentNode
93
+
94
+ # 使用 Loom 就像搭积木
95
+ async def main():
96
+ app = LoomApp()
97
+
98
+ # 1. 创建 Agent
99
+ agent = AgentNode(
100
+ node_id="helper",
101
+ dispatcher=app.dispatcher,
102
+ role="Assistant",
103
+ system_prompt="你是一个乐于助人的 AI。"
104
+ )
105
+ app.add_node(agent)
106
+
107
+ # 2. 运行任务
108
+ response = await app.run("你好,Loom 是什么?", target="helper")
109
+ print(response['response'])
110
+
111
+ if __name__ == "__main__":
112
+ asyncio.run(main())
113
+ ```
114
+
115
+ > **注意**: 默认情况下 Loom 使用 Mock LLM 方便测试。要接入真实模型,请参阅[文档](docs/zh/08_examples/index.md)。
116
+
117
+ ## 📚 文档索引
118
+
119
+ 我们提供了完整的双语文档:
120
+
121
+ * **[用户指南](docs/zh/index.md)**
122
+ * [安装指南](docs/zh/01_getting_started/installation.md)
123
+ * [构建 Agent](docs/zh/03_guides/building_agents.md)
124
+ * **[核心原理](docs/zh/02_core_concepts/index.md)**
125
+ * [新陈代谢记忆](docs/zh/02_core_concepts/memory_system.md)
126
+ * [设计哲学](docs/zh/05_design_philosophy/index.md)
127
+
128
+ ## 🤝 贡献
129
+
130
+ 欢迎提交 PR 或 Issue!查看 [CONTRIBUTING.md](CONTRIBUTING.md) 了解更多。
131
+
132
+ ## 📄 许可证
133
+
134
+ **Apache License 2.0 with Commons Clause**.
135
+
136
+ 本软件允许免费用于学术研究、个人学习和内部商业使用。
137
+ **严禁未经授权的商业销售**(包括但不限于将本软件打包收费、提供托管服务等)。
138
+ 详情请见 [LICENSE](LICENSE)。
139
+
@@ -0,0 +1,52 @@
1
+ loom/__init__.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
2
+ loom/adapters/converters.py,sha256=URooG0SehhSEAkVggBB8qGf95R-Fa6L_pCN4xnMZBnI,2322
3
+ loom/adapters/registry.py,sha256=Rg5mQMlOchN6jk5S_96NY3su49Q3pdTGEhOZ6cMp-Zw,1369
4
+ loom/api/factory.py,sha256=SruHGqqmS3SER4OE0HM_LWa2yyRRrCZwO-OvR44DKlw,1906
5
+ loom/api/main.py,sha256=3eHpkqwfKr4IBj5NUlRFfKCs8QWBkReQ8qw-ElJVFEs,8063
6
+ loom/builtin/__init__.py,sha256=4hqYZfDy0FBomXVMUhB4xKoJ3KlWU4P85n7iZLXIZls,63
7
+ loom/builtin/memory/__init__.py,sha256=pZjy-byugV6bcwWevUxa5vC1r-trbI-jSL-4i88wEVE,71
8
+ loom/builtin/memory/metabolic.py,sha256=N5npBX1CzX97TmmW3MF1spMiyuQJfQvz2SnF1S-5otc,3617
9
+ loom/builtin/memory/pso.py,sha256=Krmn7YgqtUwcVT20_wnOgvVFYNNDE_6tEtftb1LSCpE,1361
10
+ loom/builtin/memory/sanitizers.py,sha256=y3RAKh028fag6PAY3d0WMKzOStbaqXd3ukWB06eLDrc,1402
11
+ loom/builtin/memory/validators.py,sha256=pHFW26AHsfq-fmnCtHYLO5giagpJn29dOdolsLxN0qo,1903
12
+ loom/config/tool.py,sha256=2OTtclQdcKous0ELgQ5CZzn1ApATAikBoP6p0alooOk,1825
13
+ loom/infra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ loom/infra/llm.py,sha256=kom-_pL71xJ8CR6DDTmXlfbvDQ3Sh5JF87-FwmJ35AM,1316
15
+ loom/infra/logging.py,sha256=vDfzy91vlGLGniD6PUu3uwTQxTeTQO7quZH7VOlppnA,1153
16
+ loom/infra/store.py,sha256=PFLAKSinHLCbvZv7WhvoShv5Wss6WdIDHNLH1m8Z6Ag,1075
17
+ loom/infra/transport/memory.py,sha256=QCSmU7Cf2u0-pRjqkhavr_JuMX5aWIIQeiKmp6sVJhE,4034
18
+ loom/infra/transport/nats.py,sha256=ZA-a_QidSIjPHdlPxHNpCe1FuMkIvNjTc6QOPTBcJ18,6161
19
+ loom/infra/transport/redis.py,sha256=extQguP8vx6cyGKi3ysIgCTFzE3vVnZVAlcW2qdHj5U,5862
20
+ loom/interfaces/llm.py,sha256=nW-3nDb0ZX4dodsgSv6oXl6XeamXFWwHfwL-ksAo3wU,1115
21
+ loom/interfaces/memory.py,sha256=50-YRqxedDNffBwm24IHaXZiM2cAP2Brd9FA7JYmI0k,1352
22
+ loom/interfaces/store.py,sha256=lM6OPNoieL3AQUNZ2EzQhCQ24594i-jZZuYxMAuey9Y,756
23
+ loom/interfaces/transport.py,sha256=zi1h9URGsxaMVlsZCq7g0FbnlJzhVMOGMEkwc4h6vZU,924
24
+ loom/kernel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ loom/kernel/base_interceptor.py,sha256=AUCeNQQvMv-1Uw7eoRRJ1h9BQa1HQpn7AY-xSZh0m8M,3026
26
+ loom/kernel/bus.py,sha256=RPy6dwb4uVNioCuZ1bFpvBn6qtt31XG2v4J7Op9XiUg,2978
27
+ loom/kernel/dispatcher.py,sha256=irLQ4FFvYEaOFdRz9zNFi7EU-Jh8nw7r61O6ISZCZ-w,1986
28
+ loom/kernel/interceptors/__init__.py,sha256=LBMwruQoDTwmwqQQgoUvO7S4EL6Tpn9EHB7CcV8Kmo4,347
29
+ loom/kernel/interceptors/adaptive.py,sha256=s7mhOlt7_6503Uhged2J0QoJu34PMeJFyJ6JoNiOEK4,21775
30
+ loom/kernel/interceptors/budget.py,sha256=-p1CFz60yXpmMf9HX11WUwxplErIXB8xE0tSxmCBZFY,2212
31
+ loom/kernel/interceptors/depth.py,sha256=NJ9s-7AKXn8i3IMsDZTUQ3mQMDVfMhBxggisxoHuTN8,1571
32
+ loom/kernel/interceptors/hitl.py,sha256=WTURHJbw3y8LK3ENj1A6M_Ka-WaKhOP61KedAfgt7kw,1857
33
+ loom/kernel/interceptors/studio.py,sha256=4_LzAOIWjxcT05U5YlrZ6P_BlaBgg-rkVgC9lEXgiug,4848
34
+ loom/kernel/interceptors/timeout.py,sha256=hB-0uXf9GBBuuU6j2dXUZ1JB-6PaXrllG18xg6WObkE,938
35
+ loom/kernel/state.py,sha256=tCBZ_uZVf4vChODnjHeb4e2yuq6i74aj1RGs44PVJEM,2110
36
+ loom/memory/hierarchical.py,sha256=6VCzy7x9r1DLIOJA7MsyCAb48KjGluUn5ZcGG7SpH0s,4245
37
+ loom/node/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
+ loom/node/agent.py,sha256=Q4DbKDIDl2J_to7y23hdnFge0BoY-riV0DPiEbx7y54,10040
39
+ loom/node/base.py,sha256=hfPspZsrKtLWu_JEBWqEjM1IbvsphB5QZZ_VheyiotM,4239
40
+ loom/node/crew.py,sha256=F0TjIcs7RB19S89cD9YWOAIfmnjXo4q2pa6cgHuNz5Q,3678
41
+ loom/node/router.py,sha256=UP2DfVxngGuX_0NorVsOwiAIWMpkQD_msVg3IhXnit8,2625
42
+ loom/node/tool.py,sha256=zzRNmWTuyzqmTh0R59jjSncC8jV1iewU2SFKJ-y4zvc,1426
43
+ loom/protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ loom/protocol/cloudevents.py,sha256=vO24JTVQWGQ0bzahmBJ79zGIGw8zIeFhBWWRwkhrqT0,2356
45
+ loom/protocol/interfaces.py,sha256=3V6IBfW9oAxD79eBIiQh_3_aFq7wTWEyArFUjkpjTK8,5213
46
+ loom/protocol/mcp.py,sha256=loTRVVnoQfmWE5IhTI0O6Kf2qZrnv7id9ESTcmrLgvI,2603
47
+ loom/protocol/memory_operations.py,sha256=TH8hT75hyqqiRC_i_kUQvqkqpB06Y5eZz1YXs0SQKW8,1350
48
+ loom/protocol/patch.py,sha256=CU5_aSmWRLhqT7pUmOZisRMRCcv6DJc9Oq-skdXQXRA,2798
49
+ loom_agent-0.3.3.dist-info/LICENSE,sha256=j5wyxQAYPDVGWKw30fzR4G4q0q4Kd6P-M0WPzoIWbBA,11690
50
+ loom_agent-0.3.3.dist-info/METADATA,sha256=tRdKKEjo4Ku4DDpbIQWOmF2zlwyCkYy_pcqDoyHHPkI,5076
51
+ loom_agent-0.3.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
52
+ loom_agent-0.3.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.8.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any