loom-agent 0.3.2__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.

Potentially problematic release.


This version of loom-agent might be problematic. Click here for more details.

Files changed (51) 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 +43 -0
  15. loom/infra/logging.py +42 -0
  16. loom/infra/store.py +39 -0
  17. loom/infra/transport/memory.py +85 -0
  18. loom/infra/transport/nats.py +141 -0
  19. loom/infra/transport/redis.py +140 -0
  20. loom/interfaces/llm.py +44 -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 +76 -0
  27. loom/kernel/dispatcher.py +58 -0
  28. loom/kernel/interceptors/__init__.py +14 -0
  29. loom/kernel/interceptors/budget.py +60 -0
  30. loom/kernel/interceptors/depth.py +45 -0
  31. loom/kernel/interceptors/hitl.py +51 -0
  32. loom/kernel/interceptors/studio.py +137 -0
  33. loom/kernel/interceptors/timeout.py +27 -0
  34. loom/kernel/state.py +71 -0
  35. loom/memory/hierarchical.py +94 -0
  36. loom/node/__init__.py +0 -0
  37. loom/node/agent.py +133 -0
  38. loom/node/base.py +121 -0
  39. loom/node/crew.py +103 -0
  40. loom/node/router.py +68 -0
  41. loom/node/tool.py +50 -0
  42. loom/protocol/__init__.py +0 -0
  43. loom/protocol/cloudevents.py +73 -0
  44. loom/protocol/interfaces.py +110 -0
  45. loom/protocol/mcp.py +97 -0
  46. loom/protocol/memory_operations.py +51 -0
  47. loom/protocol/patch.py +93 -0
  48. loom_agent-0.3.2.dist-info/LICENSE +204 -0
  49. loom_agent-0.3.2.dist-info/METADATA +139 -0
  50. loom_agent-0.3.2.dist-info/RECORD +51 -0
  51. loom_agent-0.3.2.dist-info/WHEEL +4 -0
@@ -0,0 +1,110 @@
1
+ """
2
+ Core Protocols for Loom Framework.
3
+ Adhering to the "Protocol-First" design principle using typing.Protocol.
4
+ """
5
+
6
+ from typing import Any, Dict, List, Optional, Protocol, runtime_checkable, AsyncIterator, Union
7
+
8
+ from loom.protocol.cloudevents import CloudEvent
9
+
10
+ # ----------------------------------------------------------------------
11
+ # Node Protocol
12
+ # ----------------------------------------------------------------------
13
+
14
+ @runtime_checkable
15
+ class NodeProtocol(Protocol):
16
+ """
17
+ Protocol for any Node in the Loom Fractal System.
18
+ """
19
+ node_id: str
20
+ source_uri: str
21
+
22
+ async def process(self, event: CloudEvent) -> Any:
23
+ """
24
+ Process an incoming event and return a result.
25
+ """
26
+ ...
27
+
28
+ async def call(self, target_node: str, data: Dict[str, Any]) -> Any:
29
+ """
30
+ Send a request to another node and await the response.
31
+ """
32
+ ...
33
+
34
+ # ----------------------------------------------------------------------
35
+ # Memory Protocol
36
+ # ----------------------------------------------------------------------
37
+
38
+ @runtime_checkable
39
+ class MemoryStrategy(Protocol):
40
+ """
41
+ Protocol for Memory interactions.
42
+ """
43
+ async def add(self, role: str, content: str, metadata: Optional[Dict[str, Any]] = None) -> None:
44
+ """Add a memory entry."""
45
+ ...
46
+
47
+ async def get_context(self, task: str = "") -> str:
48
+ """Get full context formatted for the LLM."""
49
+ ...
50
+
51
+ async def get_recent(self, limit: int = 10) -> List[Dict[str, Any]]:
52
+ """Get recent memory entries."""
53
+ ...
54
+
55
+ async def clear(self) -> None:
56
+ """Clear memory."""
57
+ ...
58
+
59
+ # ----------------------------------------------------------------------
60
+ # LLM Protocol
61
+ # ----------------------------------------------------------------------
62
+
63
+ # We need the LLMResponse type, but we can't easily import it if it's in the interface file
64
+ # without creating circular deps if that interface file imports this protocol file.
65
+ # For now, we will use Any or assume the structure matches.
66
+ # Ideally, data models should be in `loom.protocol.types` or similar,
67
+ # but we'll stick to `Any` or Dict for the strict Protocol definition to avoid tight coupling,
68
+ # OR we rely on structural subtyping.
69
+ # But let's try to be precise if possible.
70
+
71
+ @runtime_checkable
72
+ class LLMProviderProtocol(Protocol):
73
+ """
74
+ Protocol for LLM Providers.
75
+ """
76
+ async def chat(
77
+ self,
78
+ messages: List[Dict[str, Any]],
79
+ tools: Optional[List[Dict[str, Any]]] = None
80
+ ) -> Any: # Returns LLMResponse compatible object
81
+ ...
82
+
83
+ async def stream_chat(
84
+ self,
85
+ messages: List[Dict[str, Any]],
86
+ tools: Optional[List[Dict[str, Any]]] = None
87
+ ) -> AsyncIterator[str]:
88
+ ...
89
+
90
+ # ----------------------------------------------------------------------
91
+ # Infra Protocols
92
+ # ----------------------------------------------------------------------
93
+
94
+ @runtime_checkable
95
+ class TransportProtocol(Protocol):
96
+ """
97
+ Protocol for Event Transport (Pub/Sub).
98
+ """
99
+ async def connect(self) -> None: ...
100
+ async def disconnect(self) -> None: ...
101
+ async def publish(self, topic: str, event: CloudEvent) -> None: ...
102
+ async def subscribe(self, topic: str, handler: Any) -> None: ...
103
+
104
+ @runtime_checkable
105
+ class EventBusProtocol(Protocol):
106
+ """
107
+ Protocol for the Universal Event Bus.
108
+ """
109
+ async def publish(self, event: CloudEvent) -> None: ...
110
+ async def subscribe(self, topic: str, handler: Any) -> None: ...
loom/protocol/mcp.py ADDED
@@ -0,0 +1,97 @@
1
+ """
2
+ Model Context Protocol (MCP) Implementation for Loom
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from abc import ABC, abstractmethod
8
+ from typing import Any, Dict, List, Optional
9
+ from dataclasses import dataclass, field
10
+ from pydantic import BaseModel, Field, ConfigDict
11
+
12
+ # --- MCP Data Models ---
13
+
14
+ class MCPToolDefinition(BaseModel):
15
+ """Definition of an MCP Tool."""
16
+ name: str
17
+ description: str
18
+ input_schema: Dict[str, Any] = Field(..., alias="inputSchema")
19
+
20
+ model_config = ConfigDict(populate_by_name=True)
21
+
22
+ class MCPResource(BaseModel):
23
+ """Definition of an MCP Resource."""
24
+ uri: str
25
+ name: str
26
+ mime_type: str = Field(..., alias="mimeType")
27
+ description: Optional[str] = None
28
+
29
+ model_config = ConfigDict(populate_by_name=True)
30
+
31
+ class MCPPrompt(BaseModel):
32
+ """Definition of an MCP Prompt."""
33
+ name: str
34
+ description: str
35
+ arguments: List[Dict[str, Any]] = Field(default_factory=list)
36
+
37
+ class MCPToolCall(BaseModel):
38
+ """A request to call a tool."""
39
+ name: str
40
+ arguments: Dict[str, Any]
41
+
42
+ class MCPToolResult(BaseModel):
43
+ """Result of a tool call."""
44
+ content: List[Dict[str, Any]] # Text or Image content
45
+ is_error: bool = False
46
+
47
+ # --- MCP Interfaces ---
48
+
49
+ class MCPServer(ABC):
50
+ """
51
+ Abstract Interface for an MCP Server (provider of tools/resources).
52
+ """
53
+
54
+ @abstractmethod
55
+ async def list_tools(self) -> List[MCPToolDefinition]:
56
+ """List available tools."""
57
+ pass
58
+
59
+ @abstractmethod
60
+ async def call_tool(self, name: str, arguments: Dict[str, Any]) -> MCPToolResult:
61
+ """Call a specific tool."""
62
+ pass
63
+
64
+ @abstractmethod
65
+ async def list_resources(self) -> List[MCPResource]:
66
+ """List available resources."""
67
+ pass
68
+
69
+ @abstractmethod
70
+ async def read_resource(self, uri: str) -> str:
71
+ """Read a resource content."""
72
+ pass
73
+
74
+ @abstractmethod
75
+ async def list_prompts(self) -> List[MCPPrompt]:
76
+ """List available prompts."""
77
+ pass
78
+
79
+ @abstractmethod
80
+ async def get_prompt(self, name: str, arguments: Dict[str, Any]) -> str:
81
+ """Get a prompt context."""
82
+ pass
83
+
84
+ class MCPClient(ABC):
85
+ """
86
+ Abstract Interface for an MCP Client (consumer of tools/resources).
87
+ """
88
+
89
+ @abstractmethod
90
+ async def discover_capabilities(self):
91
+ """Discover tools and resources from connected servers."""
92
+ pass
93
+
94
+ @abstractmethod
95
+ async def call_tool(self, tool_name: str, arguments: Dict[str, Any]) -> Any:
96
+ """Execute a tool via the protocol."""
97
+ pass
@@ -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