hindsight-pipecat 0.1.1__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.
- hindsight_pipecat/__init__.py +46 -0
- hindsight_pipecat/config.py +72 -0
- hindsight_pipecat/errors.py +7 -0
- hindsight_pipecat/memory.py +255 -0
- hindsight_pipecat-0.1.1.dist-info/METADATA +22 -0
- hindsight_pipecat-0.1.1.dist-info/RECORD +8 -0
- hindsight_pipecat-0.1.1.dist-info/WHEEL +4 -0
- hindsight_pipecat-0.1.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Hindsight-Pipecat: Persistent memory for voice AI pipelines.
|
|
2
|
+
|
|
3
|
+
Provides a Hindsight-backed FrameProcessor for Pipecat pipelines,
|
|
4
|
+
giving them long-term memory via automatic recall and retain.
|
|
5
|
+
|
|
6
|
+
Basic usage::
|
|
7
|
+
|
|
8
|
+
from pipecat.pipeline.pipeline import Pipeline
|
|
9
|
+
from hindsight_pipecat import HindsightMemoryService
|
|
10
|
+
|
|
11
|
+
memory = HindsightMemoryService(
|
|
12
|
+
bank_id="user-123",
|
|
13
|
+
hindsight_api_url="http://localhost:8888",
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
pipeline = Pipeline([
|
|
17
|
+
transport.input(),
|
|
18
|
+
stt_service,
|
|
19
|
+
user_aggregator,
|
|
20
|
+
memory, # recall before LLM, retain after each turn
|
|
21
|
+
llm_service,
|
|
22
|
+
assistant_aggregator,
|
|
23
|
+
tts_service,
|
|
24
|
+
transport.output(),
|
|
25
|
+
])
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
from .config import (
|
|
29
|
+
HindsightPipecatConfig,
|
|
30
|
+
configure,
|
|
31
|
+
get_config,
|
|
32
|
+
reset_config,
|
|
33
|
+
)
|
|
34
|
+
from .errors import HindsightPipecatError
|
|
35
|
+
from .memory import HindsightMemoryService
|
|
36
|
+
|
|
37
|
+
__version__ = "0.1.0"
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"configure",
|
|
41
|
+
"get_config",
|
|
42
|
+
"reset_config",
|
|
43
|
+
"HindsightPipecatConfig",
|
|
44
|
+
"HindsightPipecatError",
|
|
45
|
+
"HindsightMemoryService",
|
|
46
|
+
]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""Global configuration for Hindsight-Pipecat integration."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
|
|
8
|
+
DEFAULT_HINDSIGHT_API_URL = "https://api.hindsight.vectorize.io"
|
|
9
|
+
HINDSIGHT_API_KEY_ENV = "HINDSIGHT_API_KEY"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class HindsightPipecatConfig:
|
|
14
|
+
"""Connection and default settings for the Pipecat integration.
|
|
15
|
+
|
|
16
|
+
Attributes:
|
|
17
|
+
hindsight_api_url: URL of the Hindsight API server.
|
|
18
|
+
api_key: API key for Hindsight authentication.
|
|
19
|
+
recall_budget: Default recall budget level (low/mid/high).
|
|
20
|
+
recall_max_tokens: Default maximum tokens for recall results.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
hindsight_api_url: str = DEFAULT_HINDSIGHT_API_URL
|
|
24
|
+
api_key: str | None = None
|
|
25
|
+
recall_budget: str = "mid"
|
|
26
|
+
recall_max_tokens: int = 4096
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
_global_config: HindsightPipecatConfig | None = None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def configure(
|
|
33
|
+
hindsight_api_url: str | None = None,
|
|
34
|
+
api_key: str | None = None,
|
|
35
|
+
recall_budget: str = "mid",
|
|
36
|
+
recall_max_tokens: int = 4096,
|
|
37
|
+
) -> HindsightPipecatConfig:
|
|
38
|
+
"""Configure Hindsight connection and default settings.
|
|
39
|
+
|
|
40
|
+
Args:
|
|
41
|
+
hindsight_api_url: Hindsight API URL (default: production).
|
|
42
|
+
api_key: API key. Falls back to HINDSIGHT_API_KEY env var.
|
|
43
|
+
recall_budget: Default recall budget (low/mid/high).
|
|
44
|
+
recall_max_tokens: Default max tokens for recall.
|
|
45
|
+
|
|
46
|
+
Returns:
|
|
47
|
+
The configured HindsightPipecatConfig.
|
|
48
|
+
"""
|
|
49
|
+
global _global_config
|
|
50
|
+
|
|
51
|
+
resolved_url = hindsight_api_url or DEFAULT_HINDSIGHT_API_URL
|
|
52
|
+
resolved_key = api_key or os.environ.get(HINDSIGHT_API_KEY_ENV)
|
|
53
|
+
|
|
54
|
+
_global_config = HindsightPipecatConfig(
|
|
55
|
+
hindsight_api_url=resolved_url,
|
|
56
|
+
api_key=resolved_key,
|
|
57
|
+
recall_budget=recall_budget,
|
|
58
|
+
recall_max_tokens=recall_max_tokens,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
return _global_config
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def get_config() -> HindsightPipecatConfig | None:
|
|
65
|
+
"""Get the current global configuration."""
|
|
66
|
+
return _global_config
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def reset_config() -> None:
|
|
70
|
+
"""Reset global configuration to None."""
|
|
71
|
+
global _global_config
|
|
72
|
+
_global_config = None
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"""Hindsight memory service for Pipecat voice AI pipelines.
|
|
2
|
+
|
|
3
|
+
Provides a FrameProcessor that slots between the user context aggregator
|
|
4
|
+
and the LLM service to add persistent memory via Hindsight.
|
|
5
|
+
|
|
6
|
+
Placement::
|
|
7
|
+
|
|
8
|
+
user_aggregator → HindsightMemoryService → LLM service
|
|
9
|
+
|
|
10
|
+
On each turn the service:
|
|
11
|
+
1. Retains any new complete user+assistant turn pairs (fire-and-forget).
|
|
12
|
+
2. Recalls relevant memories for the current user query.
|
|
13
|
+
3. Injects recalled memories as a system message into the LLM context.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
import asyncio
|
|
19
|
+
import logging
|
|
20
|
+
from typing import Any
|
|
21
|
+
|
|
22
|
+
from pipecat.frames.frames import Frame, LLMContextFrame
|
|
23
|
+
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
|
|
24
|
+
|
|
25
|
+
# OpenAILLMContextFrame was deprecated in pipecat 0.0.99; keep the import
|
|
26
|
+
# optional so the integration works with both old and future versions.
|
|
27
|
+
try:
|
|
28
|
+
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContextFrame as _OpenAILLMContextFrame
|
|
29
|
+
|
|
30
|
+
_LEGACY_FRAME_TYPES: tuple[type, ...] = (LLMContextFrame, _OpenAILLMContextFrame)
|
|
31
|
+
except ImportError: # removed in a future pipecat release
|
|
32
|
+
_LEGACY_FRAME_TYPES = (LLMContextFrame,)
|
|
33
|
+
|
|
34
|
+
from hindsight_client import Hindsight
|
|
35
|
+
|
|
36
|
+
from .config import get_config
|
|
37
|
+
from .errors import HindsightPipecatError
|
|
38
|
+
|
|
39
|
+
logger = logging.getLogger(__name__)
|
|
40
|
+
|
|
41
|
+
_MEMORY_MARKER = "<hindsight_memories>"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _resolve_client(
|
|
45
|
+
client: Hindsight | None,
|
|
46
|
+
hindsight_api_url: str | None,
|
|
47
|
+
api_key: str | None,
|
|
48
|
+
) -> Hindsight:
|
|
49
|
+
"""Resolve a Hindsight client from explicit args or global config."""
|
|
50
|
+
if client is not None:
|
|
51
|
+
return client
|
|
52
|
+
|
|
53
|
+
config = get_config()
|
|
54
|
+
url = hindsight_api_url or (config.hindsight_api_url if config else None)
|
|
55
|
+
key = api_key or (config.api_key if config else None)
|
|
56
|
+
|
|
57
|
+
if url is None:
|
|
58
|
+
raise HindsightPipecatError(
|
|
59
|
+
"No Hindsight API URL configured. "
|
|
60
|
+
"Pass client= or hindsight_api_url=, or call configure() first."
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
kwargs: dict[str, Any] = {"base_url": url, "timeout": 30.0}
|
|
64
|
+
if key:
|
|
65
|
+
kwargs["api_key"] = key
|
|
66
|
+
return Hindsight(**kwargs)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class HindsightMemoryService(FrameProcessor):
|
|
70
|
+
"""Pipecat frame processor that adds Hindsight persistent memory.
|
|
71
|
+
|
|
72
|
+
Place this between the user context aggregator and the LLM service::
|
|
73
|
+
|
|
74
|
+
pipeline = Pipeline([
|
|
75
|
+
transport.input(),
|
|
76
|
+
stt_service,
|
|
77
|
+
user_aggregator,
|
|
78
|
+
HindsightMemoryService(bank_id="user-123", hindsight_api_url="..."),
|
|
79
|
+
llm_service,
|
|
80
|
+
assistant_aggregator,
|
|
81
|
+
tts_service,
|
|
82
|
+
transport.output(),
|
|
83
|
+
])
|
|
84
|
+
|
|
85
|
+
On each ``OpenAILLMContextFrame``:
|
|
86
|
+
|
|
87
|
+
1. Retains any new complete user+assistant pairs from prior turns
|
|
88
|
+
(non-blocking, fire-and-forget).
|
|
89
|
+
2. Recalls relevant memories using the latest user message as the query.
|
|
90
|
+
3. Injects memories as a ``<hindsight_memories>`` system message into
|
|
91
|
+
the LLM context before forwarding it downstream.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
bank_id: Hindsight memory bank to read from and write to.
|
|
95
|
+
client: Pre-configured Hindsight client (preferred).
|
|
96
|
+
hindsight_api_url: API URL (used if no client provided).
|
|
97
|
+
api_key: API key (used if no client provided).
|
|
98
|
+
recall_budget: Recall budget level — ``"low"``, ``"mid"``, ``"high"``.
|
|
99
|
+
recall_max_tokens: Maximum tokens for recall results.
|
|
100
|
+
enable_recall: Inject recalled memories before each LLM call.
|
|
101
|
+
enable_retain: Store conversation turns after each exchange.
|
|
102
|
+
memory_prefix: Text prepended to the recalled memory block.
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
def __init__(
|
|
106
|
+
self,
|
|
107
|
+
bank_id: str,
|
|
108
|
+
*,
|
|
109
|
+
client: Hindsight | None = None,
|
|
110
|
+
hindsight_api_url: str | None = None,
|
|
111
|
+
api_key: str | None = None,
|
|
112
|
+
recall_budget: str = "mid",
|
|
113
|
+
recall_max_tokens: int = 4096,
|
|
114
|
+
enable_recall: bool = True,
|
|
115
|
+
enable_retain: bool = True,
|
|
116
|
+
memory_prefix: str = "Relevant memories from past conversations:\n",
|
|
117
|
+
**kwargs: Any,
|
|
118
|
+
) -> None:
|
|
119
|
+
super().__init__(**kwargs)
|
|
120
|
+
self._bank_id = bank_id
|
|
121
|
+
self._client = _resolve_client(client, hindsight_api_url, api_key)
|
|
122
|
+
config = get_config()
|
|
123
|
+
self._recall_budget = recall_budget or (
|
|
124
|
+
config.recall_budget if config else "mid"
|
|
125
|
+
)
|
|
126
|
+
self._recall_max_tokens = recall_max_tokens or (
|
|
127
|
+
config.recall_max_tokens if config else 4096
|
|
128
|
+
)
|
|
129
|
+
self._enable_recall = enable_recall
|
|
130
|
+
self._enable_retain = enable_retain
|
|
131
|
+
self._memory_prefix = memory_prefix
|
|
132
|
+
# Track how many messages have already been retained.
|
|
133
|
+
# Messages are stored as a flat list; complete turns are user+assistant pairs.
|
|
134
|
+
self._last_retained_count: int = 0
|
|
135
|
+
|
|
136
|
+
async def process_frame(self, frame: Frame, direction: FrameDirection) -> None:
|
|
137
|
+
await super().process_frame(frame, direction)
|
|
138
|
+
|
|
139
|
+
if isinstance(frame, _LEGACY_FRAME_TYPES) and direction == FrameDirection.DOWNSTREAM:
|
|
140
|
+
await self._handle_context_frame(frame)
|
|
141
|
+
else:
|
|
142
|
+
await self.push_frame(frame, direction)
|
|
143
|
+
|
|
144
|
+
async def _handle_context_frame(self, frame: LLMContextFrame) -> None:
|
|
145
|
+
messages: list[dict[str, Any]] = frame.context.messages or []
|
|
146
|
+
|
|
147
|
+
# 1. Retain any new complete turns (user+assistant pairs) non-blockingly.
|
|
148
|
+
if self._enable_retain:
|
|
149
|
+
pairs = self._extract_new_turn_pairs(messages)
|
|
150
|
+
for pair_content in pairs:
|
|
151
|
+
asyncio.create_task(self._retain(pair_content))
|
|
152
|
+
|
|
153
|
+
# 2. Recall relevant memories for the current user query.
|
|
154
|
+
if self._enable_recall:
|
|
155
|
+
query = self._extract_last_user_message(messages)
|
|
156
|
+
if query:
|
|
157
|
+
memories = await self._recall(query)
|
|
158
|
+
if memories:
|
|
159
|
+
self._inject_memories(frame.context, memories)
|
|
160
|
+
|
|
161
|
+
await self.push_frame(frame, FrameDirection.DOWNSTREAM)
|
|
162
|
+
|
|
163
|
+
def _extract_last_user_message(self, messages: list[dict[str, Any]]) -> str | None:
|
|
164
|
+
"""Return the content of the last user message, or None."""
|
|
165
|
+
for msg in reversed(messages):
|
|
166
|
+
if msg.get("role") == "user":
|
|
167
|
+
content = msg.get("content", "")
|
|
168
|
+
if isinstance(content, str):
|
|
169
|
+
return content
|
|
170
|
+
# Multimodal content is a list of parts; extract text parts.
|
|
171
|
+
if isinstance(content, list):
|
|
172
|
+
texts = [
|
|
173
|
+
p.get("text", "") for p in content if p.get("type") == "text"
|
|
174
|
+
]
|
|
175
|
+
return " ".join(texts) if texts else None
|
|
176
|
+
return None
|
|
177
|
+
|
|
178
|
+
def _extract_new_turn_pairs(self, messages: list[dict[str, Any]]) -> list[str]:
|
|
179
|
+
"""Return formatted strings for any new complete user+assistant turn pairs.
|
|
180
|
+
|
|
181
|
+
A complete pair is a user message immediately followed by an assistant
|
|
182
|
+
message. Updates ``_last_retained_count`` to skip already-retained pairs.
|
|
183
|
+
"""
|
|
184
|
+
pairs: list[str] = []
|
|
185
|
+
i = self._last_retained_count
|
|
186
|
+
|
|
187
|
+
while i < len(messages) - 1:
|
|
188
|
+
msg = messages[i]
|
|
189
|
+
next_msg = messages[i + 1]
|
|
190
|
+
if msg.get("role") == "user" and next_msg.get("role") == "assistant":
|
|
191
|
+
user_text = self._extract_content_text(msg)
|
|
192
|
+
assistant_text = self._extract_content_text(next_msg)
|
|
193
|
+
if user_text and assistant_text:
|
|
194
|
+
pairs.append(f"User: {user_text}\nAssistant: {assistant_text}")
|
|
195
|
+
self._last_retained_count = i + 2
|
|
196
|
+
i += 2
|
|
197
|
+
else:
|
|
198
|
+
i += 1
|
|
199
|
+
|
|
200
|
+
return pairs
|
|
201
|
+
|
|
202
|
+
def _extract_content_text(self, msg: dict[str, Any]) -> str:
|
|
203
|
+
"""Extract plain text from a message content field."""
|
|
204
|
+
content = msg.get("content", "")
|
|
205
|
+
if isinstance(content, str):
|
|
206
|
+
return content
|
|
207
|
+
if isinstance(content, list):
|
|
208
|
+
texts = [p.get("text", "") for p in content if p.get("type") == "text"]
|
|
209
|
+
return " ".join(texts)
|
|
210
|
+
return ""
|
|
211
|
+
|
|
212
|
+
def _inject_memories(self, context: Any, memories: str) -> None:
|
|
213
|
+
"""Inject memories as a system message, replacing any prior memory injection."""
|
|
214
|
+
messages: list[dict[str, Any]] = context.messages or []
|
|
215
|
+
memory_block = f"{_MEMORY_MARKER}\n{memories}\n</hindsight_memories>"
|
|
216
|
+
|
|
217
|
+
# Replace existing memory system message if present.
|
|
218
|
+
for i, msg in enumerate(messages):
|
|
219
|
+
if msg.get("role") == "system" and _MEMORY_MARKER in msg.get("content", ""):
|
|
220
|
+
messages[i] = {"role": "system", "content": memory_block}
|
|
221
|
+
return
|
|
222
|
+
|
|
223
|
+
# Prepend a new system message.
|
|
224
|
+
messages.insert(0, {"role": "system", "content": memory_block})
|
|
225
|
+
|
|
226
|
+
async def _recall(self, query: str) -> str | None:
|
|
227
|
+
"""Call Hindsight recall and return a formatted string of memories, or None."""
|
|
228
|
+
try:
|
|
229
|
+
response = await self._client.arecall(
|
|
230
|
+
bank_id=self._bank_id,
|
|
231
|
+
query=query,
|
|
232
|
+
budget=self._recall_budget,
|
|
233
|
+
max_tokens=self._recall_max_tokens,
|
|
234
|
+
)
|
|
235
|
+
if not response.results:
|
|
236
|
+
return None
|
|
237
|
+
lines = [self._memory_prefix]
|
|
238
|
+
for i, result in enumerate(response.results, 1):
|
|
239
|
+
lines.append(f"{i}. {result.text}")
|
|
240
|
+
return "\n".join(lines)
|
|
241
|
+
except Exception as e:
|
|
242
|
+
logger.warning(
|
|
243
|
+
f"Hindsight recall failed (continuing without memories): {e}"
|
|
244
|
+
)
|
|
245
|
+
return None
|
|
246
|
+
|
|
247
|
+
async def _retain(self, content: str) -> None:
|
|
248
|
+
"""Call Hindsight retain (fire-and-forget — errors are logged and swallowed)."""
|
|
249
|
+
try:
|
|
250
|
+
await self._client.aretain(
|
|
251
|
+
bank_id=self._bank_id,
|
|
252
|
+
content=content,
|
|
253
|
+
)
|
|
254
|
+
except Exception as e:
|
|
255
|
+
logger.warning(f"Hindsight retain failed: {e}")
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hindsight-pipecat
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Pipecat integration for Hindsight - persistent memory for voice AI pipelines
|
|
5
|
+
Project-URL: Homepage, https://github.com/vectorize-io/hindsight
|
|
6
|
+
Project-URL: Documentation, https://github.com/vectorize-io/hindsight/tree/main/hindsight-integrations/pipecat
|
|
7
|
+
Project-URL: Repository, https://github.com/vectorize-io/hindsight
|
|
8
|
+
Author-email: Vectorize <support@vectorize.io>
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: agents,ai,hindsight,memory,pipecat,voice
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: hindsight-client>=0.4.0
|
|
22
|
+
Requires-Dist: pipecat-ai>=0.0.100
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
hindsight_pipecat/__init__.py,sha256=-MPRu5ip1sR8pZxqN-Wo_9NylZxBQTM8LazxDJOFJ6Q,1091
|
|
2
|
+
hindsight_pipecat/config.py,sha256=RJj6EQKfU-8UqckL0ORgNbOOo9WwGkU4i3qN-3mm5oU,2076
|
|
3
|
+
hindsight_pipecat/errors.py,sha256=BKH9viUklb1Xy6hS679nINsLy7tUS2N4bJ69KMxM70Q,157
|
|
4
|
+
hindsight_pipecat/memory.py,sha256=XX5B_rEtHwXBbF9uP-abogEE5Iivv382SHvH1epKDVE,9985
|
|
5
|
+
hindsight_pipecat-0.1.1.dist-info/METADATA,sha256=Ae-YTcWPnknt_pYBf_FB7KA2NWh8U1vmqgwmSaabdbg,1031
|
|
6
|
+
hindsight_pipecat-0.1.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
7
|
+
hindsight_pipecat-0.1.1.dist-info/licenses/LICENSE,sha256=Af3gvt-DvcGFBl169SSmFpDv5Xamf5Iur_OhKAwXtjo,1075
|
|
8
|
+
hindsight_pipecat-0.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Vectorize AI, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|