oracleagentmemory 26.6.1__cp315-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.
- oracleagentmemory/__init__.pyc +0 -0
- oracleagentmemory/_async_helpers.pyc +0 -0
- oracleagentmemory/_idgenerator.pyc +0 -0
- oracleagentmemory/_lazy_loader.pyc +0 -0
- oracleagentmemory/_notset.pyc +0 -0
- oracleagentmemory/apis/__init__.pyc +0 -0
- oracleagentmemory/apis/_metadata.pyc +0 -0
- oracleagentmemory/apis/agentmemory.pyc +0 -0
- oracleagentmemory/apis/contextcard.pyc +0 -0
- oracleagentmemory/apis/embedders/__init__.pyc +0 -0
- oracleagentmemory/apis/embedders/embedder.pyc +0 -0
- oracleagentmemory/apis/llms/__init__.pyc +0 -0
- oracleagentmemory/apis/llms/llm.pyc +0 -0
- oracleagentmemory/apis/memorystore.pyc +0 -0
- oracleagentmemory/apis/records.pyc +0 -0
- oracleagentmemory/apis/scope.pyc +0 -0
- oracleagentmemory/apis/searchresult.pyc +0 -0
- oracleagentmemory/apis/searchscope.pyc +0 -0
- oracleagentmemory/apis/summary.pyc +0 -0
- oracleagentmemory/apis/thread.pyc +0 -0
- oracleagentmemory/apis/ttl.pyc +0 -0
- oracleagentmemory/core/__init__.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/__init__.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/_backgroundfuture.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/_backgroundworkitem.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/_backgroundworkscheduler.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/_deadlinehelpers.pyc +0 -0
- oracleagentmemory/core/_backgroundwork/_timeouthelpers.pyc +0 -0
- oracleagentmemory/core/_chunkers/__init__.pyc +0 -0
- oracleagentmemory/core/_chunkers/_chunker.pyc +0 -0
- oracleagentmemory/core/_chunkers/_chunking_payloads.pyc +0 -0
- oracleagentmemory/core/_chunkstats.pyc +0 -0
- oracleagentmemory/core/_db/__init__.pyc +0 -0
- oracleagentmemory/core/_db/connection.pyc +0 -0
- oracleagentmemory/core/_db/hybrid.pyc +0 -0
- oracleagentmemory/core/_db/recordchunks.pyc +0 -0
- oracleagentmemory/core/_db/schema.pyc +0 -0
- oracleagentmemory/core/_db/schemaversion.pyc +0 -0
- oracleagentmemory/core/_db/sql.pyc +0 -0
- oracleagentmemory/core/_db/upgrade_011_to_012.pyc +0 -0
- oracleagentmemory/core/_db/upgradecontext.pyc +0 -0
- oracleagentmemory/core/_db/upgradeschema.pyc +0 -0
- oracleagentmemory/core/_messageutils.pyc +0 -0
- oracleagentmemory/core/_metadata_filter.pyc +0 -0
- oracleagentmemory/core/_renderutils.pyc +0 -0
- oracleagentmemory/core/_threadstate.pyc +0 -0
- oracleagentmemory/core/_threadsummarizer.pyc +0 -0
- oracleagentmemory/core/_validation.pyc +0 -0
- oracleagentmemory/core/contextcard.pyc +0 -0
- oracleagentmemory/core/dbschemapolicy.pyc +0 -0
- oracleagentmemory/core/dbsearch.pyc +0 -0
- oracleagentmemory/core/embedders/__init__.pyc +0 -0
- oracleagentmemory/core/embedders/_embedding_payloads.pyc +0 -0
- oracleagentmemory/core/embedders/_helpers.pyc +0 -0
- oracleagentmemory/core/embedders/embedder.pyc +0 -0
- oracleagentmemory/core/embedders/oracledb.pyc +0 -0
- oracleagentmemory/core/extractors/__init__.pyc +0 -0
- oracleagentmemory/core/extractors/_extractor.pyc +0 -0
- oracleagentmemory/core/extractors/_memoryextractionbackground.pyc +0 -0
- oracleagentmemory/core/extractors/_oneshotextractor.pyc +0 -0
- oracleagentmemory/core/extractors/memoryextractionconfig.pyc +0 -0
- oracleagentmemory/core/llms/__init__.pyc +0 -0
- oracleagentmemory/core/llms/_utils.pyc +0 -0
- oracleagentmemory/core/llms/llm.pyc +0 -0
- oracleagentmemory/core/oracleagentmemory.pyc +0 -0
- oracleagentmemory/core/oracledbmemorystore.pyc +0 -0
- oracleagentmemory/core/oraclememorystore.pyc +0 -0
- oracleagentmemory/core/retention.pyc +0 -0
- oracleagentmemory/core/searchresult.pyc +0 -0
- oracleagentmemory/core/summary.pyc +0 -0
- oracleagentmemory/core/thread.pyc +0 -0
- oracleagentmemory-26.6.1.dist-info/METADATA +443 -0
- oracleagentmemory-26.6.1.dist-info/RECORD +76 -0
- oracleagentmemory-26.6.1.dist-info/WHEEL +4 -0
- oracleagentmemory-26.6.1.dist-info/licenses/LICENSE-APACHE.txt +206 -0
- oracleagentmemory-26.6.1.dist-info/licenses/LICENSE-UPL.txt +35 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: oracleagentmemory
|
|
3
|
+
Version: 26.6.1
|
|
4
|
+
Summary: Python client library for Oracle AI Database Agent Memory
|
|
5
|
+
Author: Oracle
|
|
6
|
+
License-Expression: Apache-2.0 OR UPL-1.0
|
|
7
|
+
License-File: LICENSE-APACHE.txt
|
|
8
|
+
License-File: LICENSE-UPL.txt
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Requires-Python: <4,>=3.11
|
|
22
|
+
Requires-Dist: aiohttp<4,>=3.14.4
|
|
23
|
+
Requires-Dist: anyio<5,>=4.15.1
|
|
24
|
+
Requires-Dist: cryptography<60,>=50.0.1
|
|
25
|
+
Requires-Dist: exceptiongroup<2,>=1.3
|
|
26
|
+
Requires-Dist: litellm<2.0,>=1.108.4
|
|
27
|
+
Requires-Dist: numpy<3,>=1.23
|
|
28
|
+
Requires-Dist: oracledb<28,>=3.4.2
|
|
29
|
+
Requires-Dist: pydantic<3,>=2.12.5
|
|
30
|
+
Requires-Dist: typing-extensions<5,>=4.0
|
|
31
|
+
Requires-Dist: urllib3<3,>=2.8.0
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# Oracle AI Agent Memory
|
|
35
|
+
|
|
36
|
+
[![Oracle AI Agent Memory docs][badge-docs]][docs] [![License][badge-license]](#license)
|
|
37
|
+
|
|
38
|
+
Persistent memory for enterprise AI agents on Oracle AI Database.
|
|
39
|
+
|
|
40
|
+
Oracle AI Agent Memory helps agents retain context across interactions, compact active conversations, and retrieve durable user, agent, and thread memories when they matter. It is designed for Python applications that need persistent memory backed by Oracle AI Database.
|
|
41
|
+
|
|
42
|
+
## Get Started
|
|
43
|
+
|
|
44
|
+
Install the package:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install oracleagentmemory
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Do you need a local Oracle AI Database for development? See how to run Oracle AI Database locally: https://docs.oracle.com/en/database/oracle/agent-memory/26.4/agmea/run-locally.html
|
|
51
|
+
|
|
52
|
+
Create a memory client, store a short conversation, and search it back:
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from oracleagentmemory.apis.searchscope import SearchScope
|
|
56
|
+
from oracleagentmemory.core import OracleAgentMemory
|
|
57
|
+
from oracleagentmemory.core.embedders.embedder import Embedder
|
|
58
|
+
from oracleagentmemory.core.llms.llm import Llm
|
|
59
|
+
|
|
60
|
+
embedder = Embedder(model="YOUR_EMBEDDING_MODEL")
|
|
61
|
+
llm = Llm(model="YOUR_LLM")
|
|
62
|
+
db_pool = ... # an oracledb connection or connection pool
|
|
63
|
+
|
|
64
|
+
memory = OracleAgentMemory(connection=db_pool, embedder=embedder, llm=llm)
|
|
65
|
+
|
|
66
|
+
messages = [
|
|
67
|
+
{
|
|
68
|
+
"role": "user",
|
|
69
|
+
"content": "Orange juice has become my favorite breakfast drink lately. What can I pair it with?",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"role": "assistant",
|
|
73
|
+
"content": "Try eggs and toast, avocado toast, or a breakfast sandwich.",
|
|
74
|
+
},
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
thread = memory.create_thread(user_id="user_123")
|
|
78
|
+
# add_messages will add messages to the DB and extract memories automatically
|
|
79
|
+
thread.add_messages(messages)
|
|
80
|
+
# add_memory adds memory to the DB
|
|
81
|
+
thread.add_memory("The user likes orange juice with breakfast.")
|
|
82
|
+
|
|
83
|
+
results = memory.search(query="orange juice", scope=SearchScope(user_id="user_123"))
|
|
84
|
+
for result in results:
|
|
85
|
+
print(f"- [{result.record.record_type}] {result.content}")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`OracleAgentMemory` uses your Oracle Database connection or pool as the persistence layer, an embedder for vector retrieval when needed, and an optional LLM for memory extraction, summaries, and context cards. When you know your embedding model's output dimension, you can pass `embedding_dimension` to `Embedder` so DB schema setup does not need to infer it with a provider call.
|
|
89
|
+
|
|
90
|
+
If you want Oracle-managed hybrid search over stored search text instead of
|
|
91
|
+
vector-only retrieval, opt in when constructing the client:
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
from oracleagentmemory.core import (
|
|
95
|
+
SearchIndexSyncMode,
|
|
96
|
+
OracleAgentMemory,
|
|
97
|
+
SchemaPolicy,
|
|
98
|
+
SearchStrategy,
|
|
99
|
+
)
|
|
100
|
+
from oracleagentmemory.core.embedders import OracleDBEmbedder
|
|
101
|
+
|
|
102
|
+
db_embedder = OracleDBEmbedder(
|
|
103
|
+
connection=db_pool,
|
|
104
|
+
model="YOUR_DB_EMBEDDING_MODEL",
|
|
105
|
+
embedding_dimension=384,
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
hybrid_memory = OracleAgentMemory(
|
|
109
|
+
connection=db_pool,
|
|
110
|
+
embedder=db_embedder,
|
|
111
|
+
llm=llm,
|
|
112
|
+
schema_policy=SchemaPolicy.CREATE_IF_NECESSARY,
|
|
113
|
+
search_strategy=SearchStrategy.HYBRID,
|
|
114
|
+
search_index_sync=SearchIndexSyncMode.ON_COMMIT,
|
|
115
|
+
)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`SchemaPolicy.CREATE_IF_NECESSARY` lets the SDK add the managed search objects
|
|
119
|
+
needed by the selected strategy. `SearchStrategy.HYBRID` creates or validates
|
|
120
|
+
Oracle's managed hybrid vector index and requires the main `embedder` to be an
|
|
121
|
+
`OracleDBEmbedder`; the index uses that embedder's in-database model.
|
|
122
|
+
`search_index_sync` controls refresh timing for keyword and hybrid indexes.
|
|
123
|
+
`SearchIndexSyncMode.AUTO` is supported only for hybrid search; keyword search
|
|
124
|
+
supports `ON_COMMIT` and `MANUAL`.
|
|
125
|
+
|
|
126
|
+
> **Warning**:
|
|
127
|
+
> The first creation of a hybrid index over existing data can be long-running
|
|
128
|
+
> because Oracle scans stored search text and builds the managed index state
|
|
129
|
+
> during schema setup. Run that upgrade as a planned migration for large schemas.
|
|
130
|
+
|
|
131
|
+
`SearchStrategy.KEYWORD` uses text search over stored search text and does not
|
|
132
|
+
need an embedder.
|
|
133
|
+
Keyword schemas created without local vector storage cannot be reopened with
|
|
134
|
+
`SearchStrategy.VECTOR` unless you recreate the schema or backfill local
|
|
135
|
+
embeddings first. They can still be upgraded to hybrid search with an
|
|
136
|
+
`OracleDBEmbedder`, because Oracle's managed hybrid index builds from stored
|
|
137
|
+
search text.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## LongMemEval Results
|
|
142
|
+
|
|
143
|
+
| Benchmark | Score | Correct |
|
|
144
|
+
| ------------------------ | -------: | ------------: |
|
|
145
|
+
| LongMemEval | **94.4** | **472 / 500** |
|
|
146
|
+
| Knowledge Update | 94.0 | 73 / 78 |
|
|
147
|
+
| Multi-session Reasoning | 88.0 | 117 / 133 |
|
|
148
|
+
| Temporal Reasoning | 98.0 | 130 / 133 |
|
|
149
|
+
| Single-session User | 97.0 | 68 / 70 |
|
|
150
|
+
| Single-session Assistant | 100.0 | 56 / 56 |
|
|
151
|
+
| Preference | 93.0 | 28 / 30 |
|
|
152
|
+
|
|
153
|
+
Configuration note:
|
|
154
|
+
|
|
155
|
+
> LongMemEval full 500-question evaluation. Answering with GPT-5.5 using xhigh reasoning effort. Mean answer LLM total tokens: 29,042; mean thinking tokens: 1,178.
|
|
156
|
+
|
|
157
|
+
## BEAM Results
|
|
158
|
+
| | Score | | | Correct | | |
|
|
159
|
+
|--------------------------|----------:|----------:|-----------:|------------------:|-----------------:|------------------:|
|
|
160
|
+
| | **100K** | **1M** | **10M** | **100K** | **1M** | **10M** |
|
|
161
|
+
| abstention | 71% | 65% | 62% | 28.50 / 40 | 45.50 / 70 | 12.50 / 20 |
|
|
162
|
+
| contradiction_resolution | 76% | 69% | 54% | 30.25 / 40 | 48.00 / 70 | 10.88 / 20 |
|
|
163
|
+
| event_ordering | 22% | 25% | 24% | 8.93 / 40 | 17.42 / 70 | 4.77 / 20 |
|
|
164
|
+
| information_extraction | 88% | 83% | 62% | 35.17 / 40 | 58.19 / 70 | 12.50 / 20 |
|
|
165
|
+
| instruction_following | 81% | 79% | 70% | 32.50 / 40 | 55.00 / 70 | 14.00 / 20 |
|
|
166
|
+
| knowledge_update | 60% | 66% | 70% | 24.00 / 40 | 46.50 / 70 | 14.00 / 20 |
|
|
167
|
+
| multi_session_reasoning | 67% | 63% | 14% | 26.81 / 40 | 43.93 / 70 | 2.90 / 20 |
|
|
168
|
+
| preference_following | 88% | 82% | 56% | 35.33 / 40 | 57.46 / 70 | 11.25 / 20 |
|
|
169
|
+
| summarization | 59% | 66% | 50% | 23.59 / 40 | 46.42 / 70 | 10.02 / 20 |
|
|
170
|
+
| temporal_reasoning | 72% | 59% | 39% | 29.00 / 40 | 41.08 / 70 | 7.75 / 20 |
|
|
171
|
+
| **Total** | **68.5%** | **65.6%** | **50.3%** | **274.08 / 400** | **459.50 / 700** | **100.56 / 200** |
|
|
172
|
+
|
|
173
|
+
| Metric | 100K | 1M | 10M |
|
|
174
|
+
|----------------------|-------:|-------:|---------:|
|
|
175
|
+
| Mean Input Tokens | 64,936 | 86,417 | 93,161 |
|
|
176
|
+
| Mean Output Tokens | 2,117 | 2,424 | 2,216 |
|
|
177
|
+
| Mean Thinking Tokens | 1,850 | 2,056 | 1,979 |
|
|
178
|
+
|
|
179
|
+
> Answering with GPT-5.5 using xhigh reasoning effort.
|
|
180
|
+
|
|
181
|
+
## Why Oracle AI Agent Memory?
|
|
182
|
+
|
|
183
|
+
Oracle AI Agent Memory is built for teams that want persistent agent memory on Oracle AI Database. It helps applications move beyond single-turn prompts by storing conversation history, durable memories, and prompt-ready short-term context in Oracle AI Database.
|
|
184
|
+
|
|
185
|
+
It gives agents a consistent way to:
|
|
186
|
+
|
|
187
|
+
- remember useful information across sessions;
|
|
188
|
+
- keep active threads compact and context-rich;
|
|
189
|
+
- retrieve memories by user, agent, and thread scope;
|
|
190
|
+
- use LLM-backed extraction when automatic memory formation is useful;
|
|
191
|
+
- write explicit memories when deterministic application control is preferred;
|
|
192
|
+
- integrate memory into existing Python agent applications.
|
|
193
|
+
|
|
194
|
+
## Core Concepts
|
|
195
|
+
|
|
196
|
+
### Threads
|
|
197
|
+
|
|
198
|
+
A thread represents an ongoing conversation or task. Threads can store user and assistant messages, return recent messages, and produce short-term context for an agent prompt.
|
|
199
|
+
|
|
200
|
+
```python
|
|
201
|
+
thread = memory.create_thread(user_id="user_123")
|
|
202
|
+
thread.add_messages([
|
|
203
|
+
{"role": "user", "content": "Remember that I like morning meetings."},
|
|
204
|
+
{"role": "assistant", "content": "I will keep that in mind."},
|
|
205
|
+
])
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Durable Memories
|
|
209
|
+
|
|
210
|
+
A durable memory is information intended to survive beyond the active thread. Applications can add durable memories directly.
|
|
211
|
+
|
|
212
|
+
```python
|
|
213
|
+
thread.add_memory("The user prefers morning meetings.")
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
When an LLM is configured and memory extraction is enabled, Oracle AI Agent Memory can also extract durable memories from thread messages.
|
|
217
|
+
|
|
218
|
+
### Search Scope
|
|
219
|
+
|
|
220
|
+
Search is scoped explicitly so applications can control which memories are eligible for retrieval.
|
|
221
|
+
|
|
222
|
+
```python
|
|
223
|
+
thread.add_memory(
|
|
224
|
+
"The user prefers morning meetings.",
|
|
225
|
+
metadata={"source": "support"},
|
|
226
|
+
)
|
|
227
|
+
results = memory.search(
|
|
228
|
+
query="When does the user prefer meetings?",
|
|
229
|
+
scope=SearchScope(user_id="user_123"),
|
|
230
|
+
)
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Use `record_types` and `metadata_filter` when retrieval should only consider
|
|
234
|
+
specific kinds of records or records whose stored metadata contains a requested
|
|
235
|
+
partial mapping. Multiple filter keys are combined with AND semantics, nested
|
|
236
|
+
dictionaries match nested metadata fields, and list values must match exactly:
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
results = memory.search(
|
|
240
|
+
query="When does the user prefer meetings?",
|
|
241
|
+
scope=SearchScope(user_id="user_123"),
|
|
242
|
+
record_types=["memory"],
|
|
243
|
+
metadata_filter={"source": "support"},
|
|
244
|
+
)
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
For array membership, put a field-level operator dictionary where an exact
|
|
248
|
+
value would normally appear. `$array_contains` with a scalar checks one array
|
|
249
|
+
value, `$array_contains` with a list requires all listed values, and
|
|
250
|
+
`$array_contains_any` requires at least one listed value. `$not` negates another
|
|
251
|
+
field-level operator dictionary; a standalone negated membership filter also
|
|
252
|
+
matches records where that field is missing or is not an array:
|
|
253
|
+
|
|
254
|
+
```python
|
|
255
|
+
results = memory.search(
|
|
256
|
+
query="When does the user prefer meetings?",
|
|
257
|
+
scope=SearchScope(user_id="user_123"),
|
|
258
|
+
record_types=["memory"],
|
|
259
|
+
metadata_filter={
|
|
260
|
+
"source": "support",
|
|
261
|
+
"tags": {"$array_contains": "support"},
|
|
262
|
+
},
|
|
263
|
+
)
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Context Cards
|
|
267
|
+
|
|
268
|
+
For longer conversations, `get_context_card()` creates prompt-ready short-term context with a summary, relevant durable records, retrieval topics, and recent messages.
|
|
269
|
+
|
|
270
|
+
```python
|
|
271
|
+
context = thread.get_context_card()
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Use context cards when a model needs continuity without receiving the full conversation transcript.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## Security and Deployment Notes
|
|
278
|
+
|
|
279
|
+
Oracle AI Agent Memory uses the database connection, model providers, credentials, and network configuration supplied by the integrating application. For production deployments:
|
|
280
|
+
|
|
281
|
+
- use encrypted database connections and secure model-provider endpoints;
|
|
282
|
+
- keep secrets out of source code and checked-in configuration;
|
|
283
|
+
- apply end-user authentication and authorization before memory operations;
|
|
284
|
+
- pass correct memory scope values for every request;
|
|
285
|
+
- bound message sizes, retrieval sizes, and provider usage for your workload;
|
|
286
|
+
- review LLM-backed extraction and summarization carefully before using them with sensitive data.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
## Troubleshooting
|
|
290
|
+
|
|
291
|
+
If `pip install oracleagentmemory` or `pip install oracleagentmemory==26.4.0`
|
|
292
|
+
reports `No matching distribution found`, first check the Python interpreter
|
|
293
|
+
used by pip:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
python --version
|
|
297
|
+
python -m pip --version
|
|
298
|
+
python -m pip install oracleagentmemory
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Oracle AI Agent Memory supports Python 3.10 through 3.13. Python 3.9 can
|
|
302
|
+
produce a generic resolver error instead of a clear "requires Python >=3.10"
|
|
303
|
+
message. Create a Python 3.10, 3.11, 3.12, or 3.13 environment and install
|
|
304
|
+
again.
|
|
305
|
+
|
|
306
|
+
Oracle AI Agent Memory requires vector memory to be configured in Oracle
|
|
307
|
+
Database before using vector search or vector-index backed schemas. If the
|
|
308
|
+
database raises `ORA-51962: The vector memory area is out of space for the
|
|
309
|
+
current container`, ask a DBA or privileged administrator to size vector memory
|
|
310
|
+
for both the root container and the target pluggable database. The exact values
|
|
311
|
+
depend on your database and workload; this example configures `512M` at the root
|
|
312
|
+
and `256M` for the PDB:
|
|
313
|
+
|
|
314
|
+
```sql
|
|
315
|
+
ALTER SESSION SET CONTAINER = CDB$ROOT;
|
|
316
|
+
ALTER SYSTEM SET vector_memory_size = 512M SCOPE=SPFILE SID='*';
|
|
317
|
+
SHUTDOWN IMMEDIATE;
|
|
318
|
+
STARTUP;
|
|
319
|
+
ALTER PLUGGABLE DATABASE <PDB_NAME> OPEN;
|
|
320
|
+
ALTER SESSION SET CONTAINER = <PDB_NAME>;
|
|
321
|
+
ALTER SYSTEM SET vector_memory_size = 256M SCOPE=BOTH;
|
|
322
|
+
SELECT value FROM v$parameter WHERE name = 'vector_memory_size';
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
See the Oracle Database error help for
|
|
326
|
+
[ORA-51962](https://docs.oracle.com/error-help/db/ora-51962/).
|
|
327
|
+
|
|
328
|
+
If you need a read-only runtime database user, create or upgrade the managed
|
|
329
|
+
schema with an owner account, grant only `SELECT` on the managed tables, and
|
|
330
|
+
start the runtime client with `SchemaPolicy.REQUIRE_EXISTING`. The runtime
|
|
331
|
+
user also needs the normal database privilege required to connect, such as
|
|
332
|
+
`CREATE SESSION`, which usually comes from a DBA or privileged administrator.
|
|
333
|
+
The example below uses `APP_MEMORY_` as `table_name_prefix`; if you omit that
|
|
334
|
+
argument, use the unprefixed managed object names in your grants. Then pass
|
|
335
|
+
`schema_owner` so runtime clients use the managed objects in the owner schema:
|
|
336
|
+
|
|
337
|
+
```sql
|
|
338
|
+
-- Run as a DBA or privileged administrator.
|
|
339
|
+
GRANT CREATE SESSION TO memory_r;
|
|
340
|
+
|
|
341
|
+
-- Run as memory_owner.
|
|
342
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_ORACLEAGENTMEMORY_SCHEMA_META TO memory_r;
|
|
343
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_THREAD TO memory_r;
|
|
344
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_ACTOR_PROFILE TO memory_r;
|
|
345
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_MESSAGE TO memory_r;
|
|
346
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_MEMORY TO memory_r;
|
|
347
|
+
GRANT SELECT ON memory_owner.APP_MEMORY_RECORD_CHUNKS TO memory_r;
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
The example below assumes `embedder` is already configured for your
|
|
351
|
+
application.
|
|
352
|
+
|
|
353
|
+
```python
|
|
354
|
+
import os
|
|
355
|
+
|
|
356
|
+
import oracledb
|
|
357
|
+
|
|
358
|
+
from oracleagentmemory.core import OracleAgentMemory, SchemaPolicy
|
|
359
|
+
|
|
360
|
+
RUNTIME_DB_USER = os.environ.get("ORACLE_MEMORY_RUNTIME_DB_USER", "memory_r")
|
|
361
|
+
TABLE_NAME_PREFIX = "APP_MEMORY_"
|
|
362
|
+
|
|
363
|
+
runtime_pool = oracledb.SessionPool(
|
|
364
|
+
user=RUNTIME_DB_USER,
|
|
365
|
+
password=os.environ["ORACLE_MEMORY_RUNTIME_DB_PASSWORD"],
|
|
366
|
+
dsn=os.environ.get("ORACLE_MEMORY_DB_CONNECT_STRING", "localhost:1521/FREEPDB1"),
|
|
367
|
+
min=1,
|
|
368
|
+
max=4,
|
|
369
|
+
increment=1,
|
|
370
|
+
homogeneous=True,
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
memory = OracleAgentMemory(
|
|
374
|
+
connection=runtime_pool,
|
|
375
|
+
embedder=embedder,
|
|
376
|
+
extract_memories=False,
|
|
377
|
+
schema_policy=SchemaPolicy.REQUIRE_EXISTING,
|
|
378
|
+
schema_owner="memory_owner",
|
|
379
|
+
table_name_prefix=TABLE_NAME_PREFIX,
|
|
380
|
+
)
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
If your installed Oracle AI Agent Memory version cannot qualify managed objects
|
|
384
|
+
through `schema_owner`, create private table synonyms in the runtime user's
|
|
385
|
+
schema. This is a compatibility guideline only; for versions that support
|
|
386
|
+
`schema_owner`, keep using the constructor argument shown above.
|
|
387
|
+
|
|
388
|
+
A table synonym is an Oracle Database alias for a table. It lets the runtime
|
|
389
|
+
user refer to a local-looking table name such as `APP_MEMORY_MEMORY` while
|
|
390
|
+
Oracle resolves that name to the owner schema table, such as
|
|
391
|
+
`memory_owner.APP_MEMORY_MEMORY`.
|
|
392
|
+
|
|
393
|
+
Create synonyms only after the owner schema exists and after the owner has
|
|
394
|
+
granted the runtime user access to the managed objects. A synonym does not copy
|
|
395
|
+
the table or grant permissions by itself. Each synonym uses the same local table
|
|
396
|
+
name that Oracle AI Agent Memory expects from `table_name_prefix` and points to
|
|
397
|
+
the table in the owner schema. The example below creates private table synonyms
|
|
398
|
+
for the read-only runtime user `memory_r`:
|
|
399
|
+
|
|
400
|
+
```sql
|
|
401
|
+
-- Run as a DBA or privileged administrator after granting table privileges.
|
|
402
|
+
CREATE SYNONYM memory_r.APP_MEMORY_ORACLEAGENTMEMORY_SCHEMA_META
|
|
403
|
+
FOR memory_owner.APP_MEMORY_ORACLEAGENTMEMORY_SCHEMA_META;
|
|
404
|
+
CREATE SYNONYM memory_r.APP_MEMORY_THREAD
|
|
405
|
+
FOR memory_owner.APP_MEMORY_THREAD;
|
|
406
|
+
CREATE SYNONYM memory_r.APP_MEMORY_ACTOR_PROFILE
|
|
407
|
+
FOR memory_owner.APP_MEMORY_ACTOR_PROFILE;
|
|
408
|
+
CREATE SYNONYM memory_r.APP_MEMORY_MESSAGE
|
|
409
|
+
FOR memory_owner.APP_MEMORY_MESSAGE;
|
|
410
|
+
CREATE SYNONYM memory_r.APP_MEMORY_MEMORY
|
|
411
|
+
FOR memory_owner.APP_MEMORY_MEMORY;
|
|
412
|
+
CREATE SYNONYM memory_r.APP_MEMORY_RECORD_CHUNKS
|
|
413
|
+
FOR memory_owner.APP_MEMORY_RECORD_CHUNKS;
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
Repeat the same pattern for each runtime schema, such as `memory_rw`, that must
|
|
417
|
+
use the managed objects before `schema_owner` support is available. When using
|
|
418
|
+
synonyms, omit `schema_owner` from the `OracleAgentMemory(...)` constructor so
|
|
419
|
+
the database resolves the unqualified table names through the runtime user's
|
|
420
|
+
private synonyms.
|
|
421
|
+
|
|
422
|
+
If another agent framework reports dependency conflicts around LiteLLM,
|
|
423
|
+
OpenAI, or `python-dotenv`, upgrade to the latest Oracle AI Agent Memory
|
|
424
|
+
release available to you. Oracle AI Agent Memory 26.5.0 uses
|
|
425
|
+
`litellm>=1.84.0,<2`. Avoid installing other packages that pin incompatible
|
|
426
|
+
LiteLLM ranges in the same environment. For example, if CrewAI's LiteLLM extra
|
|
427
|
+
selects an incompatible LiteLLM version, install `crewai` instead of
|
|
428
|
+
`crewai[litellm]`; otherwise, isolate the two dependency sets in separate
|
|
429
|
+
environments.
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
## License
|
|
433
|
+
|
|
434
|
+
Oracle AI Agent Memory is dual-licensed under:
|
|
435
|
+
|
|
436
|
+
- Apache License 2.0
|
|
437
|
+
- Universal Permissive License (UPL) 1.0
|
|
438
|
+
|
|
439
|
+
You may choose either license.
|
|
440
|
+
|
|
441
|
+
[badge-docs]: https://img.shields.io/badge/documentation-Oracle%20AI%20Agent%20Memory-orange
|
|
442
|
+
[badge-license]: https://img.shields.io/badge/license-apache_2.0+UPL_1.0-green
|
|
443
|
+
[docs]: https://docs.oracle.com/en/database/oracle/agent-memory/index.html
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
oracleagentmemory/__init__.pyc,sha256=iw_Q0odVHZCEmKs_I-WcQq01vWX2Y1afvOBn4AVe1Co,313
|
|
2
|
+
oracleagentmemory/_async_helpers.pyc,sha256=uP-SPAY74h4ixQr-AIRNUsCQ8hjFPRvBzAkDaUsqiWg,22656
|
|
3
|
+
oracleagentmemory/_idgenerator.pyc,sha256=hbgvf7yyuoQ9L7tmFARH1sHaUH5bRhgk7bVn4HpEKuY,1477
|
|
4
|
+
oracleagentmemory/_lazy_loader.pyc,sha256=vO22bGdbbMip7hk0AHUZh9Uva0i2xlMsdW07S8yTEc4,6837
|
|
5
|
+
oracleagentmemory/_notset.pyc,sha256=hwdwEibpvrp82n_CUZ-Fa0PfMinbxUWd54TlXdKB5v4,2251
|
|
6
|
+
oracleagentmemory/apis/__init__.pyc,sha256=p9kk_7W574ovsp33cb45Ss7FjUleKBVXUy_zU7pUnp0,1105
|
|
7
|
+
oracleagentmemory/apis/_metadata.pyc,sha256=-bbYnzu0UMx4qHdtryXql_S-ltEwnBWiD22wj3W0x64,727
|
|
8
|
+
oracleagentmemory/apis/agentmemory.pyc,sha256=pdxZQk0RLBOb_SSFm86LUWn9RkNgWN003C5SYPjdJTY,43297
|
|
9
|
+
oracleagentmemory/apis/contextcard.pyc,sha256=TjyxvA982HEv1SnHnAXh78siWHHju61_1eWA2yiT7hQ,968
|
|
10
|
+
oracleagentmemory/apis/embedders/__init__.pyc,sha256=GkIl_NFDpWiAN5fNnKD04WgyPoYNXsB20aWQgSu50gA,257
|
|
11
|
+
oracleagentmemory/apis/embedders/embedder.pyc,sha256=hEcl8hr3GSn_XjZnQyPjeWi2GMEtM2ZwSO-e649RQdM,10574
|
|
12
|
+
oracleagentmemory/apis/llms/__init__.pyc,sha256=m72-qOOhExZitS9Eo2KG0M-l6CmbvUaeCSP8MVJAkj0,268
|
|
13
|
+
oracleagentmemory/apis/llms/llm.pyc,sha256=TELugYFAJp5YtMSSkJtCbT1d9lkFQ5saFtamQ7KhzsU,3418
|
|
14
|
+
oracleagentmemory/apis/memorystore.pyc,sha256=qEhCxik6dK-FhzOtUJMYEwTKiyKl3syDPY6BNT6cyhQ,37997
|
|
15
|
+
oracleagentmemory/apis/records.pyc,sha256=iILIUg0ploOOAm7YMmhpJjnQrCYCOEHu4F5H8DYa8Do,9266
|
|
16
|
+
oracleagentmemory/apis/scope.pyc,sha256=yQO3t_6HACalzIQvV6rWRQuh04u85_qD0Y7VJDlfEMw,1987
|
|
17
|
+
oracleagentmemory/apis/searchresult.pyc,sha256=UYNuJFDBPWHyhasEYPswkloaY2T7GNY_VfBI1XWzMQk,1937
|
|
18
|
+
oracleagentmemory/apis/searchscope.pyc,sha256=QxETUHEL7G9_KR4xEABjWW2n42SfkldFToxw5aaKolM,3202
|
|
19
|
+
oracleagentmemory/apis/summary.pyc,sha256=BDWzWqY4wSYxOO3_jDLWFCj4v7VcwS6taxTRpk5R1eA,952
|
|
20
|
+
oracleagentmemory/apis/thread.pyc,sha256=Jkpgz1jGuouEEYAIipKC4zHRQ5XO-q_7hW_XIm2wKBU,57360
|
|
21
|
+
oracleagentmemory/apis/ttl.pyc,sha256=AKxoWia4Mg3lZf-0S6rclTVBG8ZtUWtarNvBPxQLLYY,983
|
|
22
|
+
oracleagentmemory/core/__init__.pyc,sha256=WP3pTkebmMJpZnsKk9zRmcYvCd_k9GMMfdPAWhL9fzI,1205
|
|
23
|
+
oracleagentmemory/core/_backgroundwork/__init__.pyc,sha256=bDsu7hfoheM0pFbbligSPQAI0WwNN2VEzUWZjHVmtUw,151
|
|
24
|
+
oracleagentmemory/core/_backgroundwork/_backgroundfuture.pyc,sha256=7rNj3aSgUtcm4o4M_gMDmERLZLDmCzjf9UwbxwPxIpY,5734
|
|
25
|
+
oracleagentmemory/core/_backgroundwork/_backgroundworkitem.pyc,sha256=WuaG6HrcxZRn01mcBnfjepIRaZ-Mh05keL97dg7o5Jc,2268
|
|
26
|
+
oracleagentmemory/core/_backgroundwork/_backgroundworkscheduler.pyc,sha256=vMhv_oNGY1S2LzCbgezTkRC8NsRhRDDcMOMsWKj6di0,21691
|
|
27
|
+
oracleagentmemory/core/_backgroundwork/_deadlinehelpers.pyc,sha256=6u1mfUQKxxMZkBITBVbgc_DWv38SkfjsyBStpdSCU8g,1002
|
|
28
|
+
oracleagentmemory/core/_backgroundwork/_timeouthelpers.pyc,sha256=Mxxi-kvPtJjru09kKgqZLa2zqDG2ANTL_JB-mcHnw6U,999
|
|
29
|
+
oracleagentmemory/core/_chunkers/__init__.pyc,sha256=UkH95VQtwIAQhTo4RWs1ymR-K32ZVlsh47E7XqkPfRc,145
|
|
30
|
+
oracleagentmemory/core/_chunkers/_chunker.pyc,sha256=UsVa9hRrHivHfu1yBg5tU_RxIPYL4OcagTj8agUJwtQ,25970
|
|
31
|
+
oracleagentmemory/core/_chunkers/_chunking_payloads.pyc,sha256=P3XCEqM4QFfFwssNX71kth-Tv7ALQMfxTtfoDZByf-Q,6529
|
|
32
|
+
oracleagentmemory/core/_chunkstats.pyc,sha256=FRY3v08axQGHV8oB3KpKczuiRluxkxHwyzkpJtShfAg,17916
|
|
33
|
+
oracleagentmemory/core/_db/__init__.pyc,sha256=-IEpCbCzGhJ5K2jH8mpdYnPokyKFutgY8FgJpf6Onr8,221
|
|
34
|
+
oracleagentmemory/core/_db/connection.pyc,sha256=DrzwUNxZ0zM2TBLMEgIm7mUH-J2tBGsdPcX5ULntjSM,10895
|
|
35
|
+
oracleagentmemory/core/_db/hybrid.pyc,sha256=fpwCF7jI97zmZfitVE2at7v2OgR5bBTWZjsWWgDjb1U,14505
|
|
36
|
+
oracleagentmemory/core/_db/recordchunks.pyc,sha256=7UOsY2oBqkppO5VGAHW_iTCDhN_Jpc-JsoDhnoYVM0E,14827
|
|
37
|
+
oracleagentmemory/core/_db/schema.pyc,sha256=r387CRZ7PH1mhlDTJy7G_Ot93AN6HzfqkuHuyFGeSgM,114510
|
|
38
|
+
oracleagentmemory/core/_db/schemaversion.pyc,sha256=0DVV5sdvUEHi4VFihLyBA8V2qoq9RlUpyN-kWmSSfQw,4350
|
|
39
|
+
oracleagentmemory/core/_db/sql.pyc,sha256=FYY_14HU0AjtMZjVbcT-G1l9cbOdXilWq7jDkWJUrGs,66574
|
|
40
|
+
oracleagentmemory/core/_db/upgrade_011_to_012.pyc,sha256=lJTPzgjYeg8Drm7dnnnyYwreIOuW8sKG1FL4N_jMaJQ,24478
|
|
41
|
+
oracleagentmemory/core/_db/upgradecontext.pyc,sha256=UdmYl988N4zXDXH6kaNr3ztDHGCD3S7vlfv_yaNFnVs,979
|
|
42
|
+
oracleagentmemory/core/_db/upgradeschema.pyc,sha256=KAzMsUwVVF7ixAk_qZZkmQOfhEDbdFudsjQebLTOBIs,3987
|
|
43
|
+
oracleagentmemory/core/_messageutils.pyc,sha256=pkMkN2iVd938i2-cLYiJVvkhSSa5lUBnFZZvzg4bjiY,6646
|
|
44
|
+
oracleagentmemory/core/_metadata_filter.pyc,sha256=NGDbYTabSEengnIO86eDyHCUKPPEcziMf8Zxq0KPrGI,19699
|
|
45
|
+
oracleagentmemory/core/_renderutils.pyc,sha256=IIFMhYqym9wy9wq2R_XiqiiM5asAT7BDCpqeWP3A2ek,2409
|
|
46
|
+
oracleagentmemory/core/_threadstate.pyc,sha256=OLMUCmG8DirHx_jXKIFFQ-QXUkBKl-6Yg1LxkIMTmb4,22871
|
|
47
|
+
oracleagentmemory/core/_threadsummarizer.pyc,sha256=EbG1bw4VpHNlCPOVK5sAi70QnkXKC3DF0J6q1JAabjI,40710
|
|
48
|
+
oracleagentmemory/core/_validation.pyc,sha256=aJeMVi3UERuFDhvoQ4Ihac_fy3I6dm4WQLlEVjnoDoA,8843
|
|
49
|
+
oracleagentmemory/core/contextcard.pyc,sha256=gJ1hJbEtSxtZjOwL5HjeGq-kUPxdapzBTMD4OhYZkis,9053
|
|
50
|
+
oracleagentmemory/core/dbschemapolicy.pyc,sha256=7AzqT-7q1L26Ql7Enwqk12ZStDrcGCBgHfYJiAG6L50,1148
|
|
51
|
+
oracleagentmemory/core/dbsearch.pyc,sha256=QAzG2645wkqehxva1gRpFkO4SGUFbS542vHQ3y3mjdg,4038
|
|
52
|
+
oracleagentmemory/core/embedders/__init__.pyc,sha256=UgtIgXRftpuhUTQx5e4GHiE6YhqfYEU4NSAeKjQa4EA,348
|
|
53
|
+
oracleagentmemory/core/embedders/_embedding_payloads.pyc,sha256=AJ3WKcwK_9tM21BqN1PEnNOwHap4H7bcFefBKJ0AMNE,6192
|
|
54
|
+
oracleagentmemory/core/embedders/_helpers.pyc,sha256=VbvgmUlo8tBlTnenQcaRseKz2T9I8qV6BLCbdGz_wVk,980
|
|
55
|
+
oracleagentmemory/core/embedders/embedder.pyc,sha256=ytsGjpixaipJN_Chczqw4j5OTVgpER3DJtU-9lGtBTo,23552
|
|
56
|
+
oracleagentmemory/core/embedders/oracledb.pyc,sha256=tOBF7lb_cUTVGZS_BCKfXTmWKEt-EGkDLLRmwDiqh8I,32425
|
|
57
|
+
oracleagentmemory/core/extractors/__init__.pyc,sha256=STmSdzK6lSxRcXXKl-UKX5xQKapt9v-hZoNwoHKq8P0,672
|
|
58
|
+
oracleagentmemory/core/extractors/_extractor.pyc,sha256=LAAnQRjWDRqCiMtgA7dKTA-U1k1s_vf6Ed-vbuiu0g0,5244
|
|
59
|
+
oracleagentmemory/core/extractors/_memoryextractionbackground.pyc,sha256=PR9bvbrIWVvqdRVwD1mg68vP3_bixJHK09S47cxWAB8,32527
|
|
60
|
+
oracleagentmemory/core/extractors/_oneshotextractor.pyc,sha256=Dftd7aCBTSPxi4jHoh2oSfVNHV50SbgAFPoPH33fwmE,85896
|
|
61
|
+
oracleagentmemory/core/extractors/memoryextractionconfig.pyc,sha256=zVU_9-JJznlD4PEGPOr4T7YJEtRa3Oj7UbxInlfWjMo,25102
|
|
62
|
+
oracleagentmemory/core/llms/__init__.pyc,sha256=osbXq569saLAnXsgrHO7uh7XEa5sSXxdIHDC_OTjw7E,266
|
|
63
|
+
oracleagentmemory/core/llms/_utils.pyc,sha256=waD0zFVUBLAqhBMbGUfDsc8sOuaz-nI-RA4VXYTYrNw,2517
|
|
64
|
+
oracleagentmemory/core/llms/llm.pyc,sha256=s_Lb6Ne2vwbJOBHULpPRzZGJ3ax0xuSCTIdeSFeCviA,57370
|
|
65
|
+
oracleagentmemory/core/oracleagentmemory.pyc,sha256=ZbLQKUQmEYUfWuKkEPN8j7eXJZC6i_qKz9cYhcjF-eU,99054
|
|
66
|
+
oracleagentmemory/core/oracledbmemorystore.pyc,sha256=fM71eETyB_GjABPL9KPDg2dH3XAVqkK1Q61D9DMUDZE,188173
|
|
67
|
+
oracleagentmemory/core/oraclememorystore.pyc,sha256=bm6dwcUEJyaOcAJIOLd5W71FrlfW8ZYa1aIaFKL2s18,32010
|
|
68
|
+
oracleagentmemory/core/retention.pyc,sha256=lPlHwmegT5xUuzcOGu9UPwK9xFHH3sXd4O_2E-GbbE0,16665
|
|
69
|
+
oracleagentmemory/core/searchresult.pyc,sha256=0Uq9w1fql7SA_z46DY-DfyCfy_U8qLaOiJr4L11az-c,7686
|
|
70
|
+
oracleagentmemory/core/summary.pyc,sha256=lPa9Idrzj1fTvpfzMK7JN84ygoK9onuh7cKPChRhI-c,3204
|
|
71
|
+
oracleagentmemory/core/thread.pyc,sha256=dRoUFkj89D-Ga1dvI2SvER4TPhsALatuyRBDgoOGggk,123528
|
|
72
|
+
oracleagentmemory-26.6.1.dist-info/METADATA,sha256=3Jpn_ZCjTVB4v-L0BoM8KyPmGUG7NA1OqKAu4H3GdvE,18656
|
|
73
|
+
oracleagentmemory-26.6.1.dist-info/RECORD,,
|
|
74
|
+
oracleagentmemory-26.6.1.dist-info/WHEEL,sha256=rHmFxVaSTZSl4VSBhpIaR0_bnUEh29wKzxqt4oBXPhg,89
|
|
75
|
+
oracleagentmemory-26.6.1.dist-info/licenses/LICENSE-APACHE.txt,sha256=oT9-xT46kopnHoK9gksUSSGUJfGHjanKhgH5yUvrvDw,11478
|
|
76
|
+
oracleagentmemory-26.6.1.dist-info/licenses/LICENSE-UPL.txt,sha256=1-ctuAQWov6wIHp_NotIArks2Ovf1WTceDCcpkyy4Cw,1838
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
Copyright (c) 2026 Oracle and/or its affiliates.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Apache License
|
|
5
|
+
Version 2.0, January 2004
|
|
6
|
+
http://www.apache.org/licenses/
|
|
7
|
+
|
|
8
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
|
|
12
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
13
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
16
|
+
the copyright owner that is granting the License.
|
|
17
|
+
|
|
18
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
19
|
+
other entities that control, are controlled by, or are under common
|
|
20
|
+
control with that entity. For the purposes of this definition,
|
|
21
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
22
|
+
direction or management of such entity, whether by contract or
|
|
23
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
24
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
25
|
+
|
|
26
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
27
|
+
exercising permissions granted by this License.
|
|
28
|
+
|
|
29
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
30
|
+
including but not limited to software source code, documentation
|
|
31
|
+
source, and configuration files.
|
|
32
|
+
|
|
33
|
+
"Object" form shall mean any form resulting from mechanical
|
|
34
|
+
transformation or translation of a Source form, including but
|
|
35
|
+
not limited to compiled object code, generated documentation,
|
|
36
|
+
and conversions to other media types.
|
|
37
|
+
|
|
38
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
39
|
+
Object form, made available under the License, as indicated by a
|
|
40
|
+
copyright notice that is included in or attached to the work
|
|
41
|
+
(an example is provided in the Appendix below).
|
|
42
|
+
|
|
43
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
44
|
+
form, that is based on (or derived from) the Work and for which the
|
|
45
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
46
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
47
|
+
of this License, Derivative Works shall not include works that remain
|
|
48
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
49
|
+
the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including
|
|
52
|
+
the original version of the Work and any modifications or additions
|
|
53
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
54
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
55
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
56
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
57
|
+
means any form of electronic, verbal, or written communication sent
|
|
58
|
+
to the Licensor or its representatives, including but not limited to
|
|
59
|
+
communication on electronic mailing lists, source code control systems,
|
|
60
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
61
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
62
|
+
excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
66
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
67
|
+
subsequently incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
70
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
71
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
72
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
73
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
74
|
+
Work and such Derivative Works in Source or Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
(except as stated in this section) patent license to make, have made,
|
|
80
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
81
|
+
where such license applies only to those patent claims licensable
|
|
82
|
+
by such Contributor that are necessarily infringed by their
|
|
83
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
84
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
85
|
+
institute patent litigation against any entity (including a
|
|
86
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
87
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
88
|
+
or contributory patent infringement, then any patent licenses
|
|
89
|
+
granted to You under this License for that Work shall terminate
|
|
90
|
+
as of the date such litigation is filed.
|
|
91
|
+
|
|
92
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
93
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
94
|
+
modifications, and in Source or Object form, provided that You
|
|
95
|
+
meet the following conditions:
|
|
96
|
+
|
|
97
|
+
(a) You must give any other recipients of the Work or
|
|
98
|
+
Derivative Works a copy of this License; and
|
|
99
|
+
|
|
100
|
+
(b) You must cause any modified files to carry prominent notices
|
|
101
|
+
stating that You changed the files; and
|
|
102
|
+
|
|
103
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
104
|
+
that You distribute, all copyright, patent, trademark, and
|
|
105
|
+
attribution notices from the Source form of the Work,
|
|
106
|
+
excluding those notices that do not pertain to any part of
|
|
107
|
+
the Derivative Works; and
|
|
108
|
+
|
|
109
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
110
|
+
distribution, then any Derivative Works that You distribute must
|
|
111
|
+
include a readable copy of the attribution notices contained
|
|
112
|
+
within such NOTICE file, excluding those notices that do not
|
|
113
|
+
pertain to any part of the Derivative Works, in at least one
|
|
114
|
+
of the following places: within a NOTICE text file distributed
|
|
115
|
+
as part of the Derivative Works; within the Source form or
|
|
116
|
+
documentation, if provided along with the Derivative Works; or,
|
|
117
|
+
within a display generated by the Derivative Works, if and
|
|
118
|
+
wherever such third-party notices normally appear. The contents
|
|
119
|
+
of the NOTICE file are for informational purposes only and
|
|
120
|
+
do not modify the License. You may add Your own attribution
|
|
121
|
+
notices within Derivative Works that You distribute, alongside
|
|
122
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
123
|
+
that such additional attribution notices cannot be construed
|
|
124
|
+
as modifying the License.
|
|
125
|
+
|
|
126
|
+
You may add Your own copyright statement to Your modifications and
|
|
127
|
+
may provide additional or different license terms and conditions
|
|
128
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
129
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
130
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
131
|
+
the conditions stated in this License.
|
|
132
|
+
|
|
133
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
134
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
135
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
136
|
+
this License, without any additional terms or conditions.
|
|
137
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
138
|
+
the terms of any separate license agreement you may have executed
|
|
139
|
+
with Licensor regarding such Contributions.
|
|
140
|
+
|
|
141
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
142
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
143
|
+
except as required for reasonable and customary use in describing the
|
|
144
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
145
|
+
|
|
146
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
147
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
148
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
149
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
150
|
+
implied, including, without limitation, any warranties or conditions
|
|
151
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
152
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
153
|
+
appropriateness of using or redistributing the Work and assume any
|
|
154
|
+
risks associated with Your exercise of permissions under this License.
|
|
155
|
+
|
|
156
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
157
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
158
|
+
unless required by applicable law (such as deliberate and grossly
|
|
159
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
160
|
+
liable to You for damages, including any direct, indirect, special,
|
|
161
|
+
incidental, or consequential damages of any character arising as a
|
|
162
|
+
result of this License or out of the use or inability to use the
|
|
163
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
164
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
165
|
+
other commercial damages or losses), even if such Contributor
|
|
166
|
+
has been advised of the possibility of such damages.
|
|
167
|
+
|
|
168
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
169
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
170
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
171
|
+
or other liability obligations and/or rights consistent with this
|
|
172
|
+
License. However, in accepting such obligations, You may act only
|
|
173
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
174
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
175
|
+
defend, and hold each Contributor harmless for any liability
|
|
176
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
177
|
+
of your accepting any such warranty or additional liability.
|
|
178
|
+
|
|
179
|
+
END OF TERMS AND CONDITIONS
|
|
180
|
+
|
|
181
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
182
|
+
|
|
183
|
+
To apply the Apache License to your work, attach the following
|
|
184
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
185
|
+
replaced with your own identifying information. (Don't include
|
|
186
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
187
|
+
comment syntax for the file format. We also recommend that a
|
|
188
|
+
file or class name and description of purpose be included on the
|
|
189
|
+
same "printed page" as the copyright notice for easier
|
|
190
|
+
identification within third-party archives.
|
|
191
|
+
|
|
192
|
+
Copyright [yyyy] [name of copyright owner]
|
|
193
|
+
|
|
194
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
195
|
+
you may not use this file except in compliance with the License.
|
|
196
|
+
You may obtain a copy of the License at
|
|
197
|
+
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
199
|
+
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software
|
|
201
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
202
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
|
+
See the License for the specific language governing permissions and
|
|
204
|
+
limitations under the License.
|
|
205
|
+
|
|
206
|
+
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Copyright (c) 2026 Oracle and/or its affiliates.
|
|
2
|
+
|
|
3
|
+
The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
|
|
5
|
+
Subject to the condition set forth below, permission is hereby granted to any
|
|
6
|
+
person obtaining a copy of this software, associated documentation and/or data
|
|
7
|
+
(collectively the "Software"), free of charge and under any and all copyright
|
|
8
|
+
rights in the Software, and any and all patent rights owned or freely
|
|
9
|
+
licensable by each licensor hereunder covering either (i) the unmodified
|
|
10
|
+
Software as contributed to or provided by such licensor, or (ii) the Larger
|
|
11
|
+
Works (as defined below), to deal in both
|
|
12
|
+
|
|
13
|
+
(a) the Software, and
|
|
14
|
+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
|
|
15
|
+
one is included with the Software (each a "Larger Work" to which the Software
|
|
16
|
+
is contributed by such licensors),
|
|
17
|
+
|
|
18
|
+
without restriction, including without limitation the rights to copy, create
|
|
19
|
+
derivative works of, display, perform, and distribute the Software and make,
|
|
20
|
+
use, sell, offer for sale, import, export, have made, and have sold the
|
|
21
|
+
Software and the Larger Work(s), and to sublicense the foregoing rights on
|
|
22
|
+
either these or other terms.
|
|
23
|
+
|
|
24
|
+
This license is subject to the following condition:
|
|
25
|
+
The above copyright notice and either this complete permission notice or at
|
|
26
|
+
a minimum a reference to the UPL must be included in all copies or
|
|
27
|
+
substantial portions of the Software.
|
|
28
|
+
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
+
SOFTWARE.
|