@mongodb-js/agent-engine-sdk-memory 0.11.3
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.
- package/LICENSE.md +201 -0
- package/README.md +115 -0
- package/dist/errors.d.ts +65 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +96 -0
- package/dist/http/client_adapter.d.ts +82 -0
- package/dist/http/client_adapter.d.ts.map +1 -0
- package/dist/http/client_adapter.js +452 -0
- package/dist/identity.d.ts +31 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +48 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/memory.d.ts +221 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +601 -0
- package/dist/models.d.ts +168 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +147 -0
- package/dist/tag_syntax.d.ts +22 -0
- package/dist/tag_syntax.d.ts.map +1 -0
- package/dist/tag_syntax.js +110 -0
- package/dist/transport.d.ts +191 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +6 -0
- package/package.json +52 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
95
|
+
Derivative 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
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 MongoDB, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# @mongodb-js/agent-engine-sdk-memory
|
|
2
|
+
|
|
3
|
+
[](LICENSE.md)
|
|
4
|
+
|
|
5
|
+
Unified **Memory** facade for Atlas Agent Engine (TypeScript). The
|
|
6
|
+
counterpart of the Python `agent-engine-sdk-memory` package: TypeScript agents
|
|
7
|
+
read from and write to the Memory Server through the same routes, with memory
|
|
8
|
+
that persists across turns and sessions.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @mongodb-js/agent-engine-sdk-memory
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## The `Memory` facade
|
|
17
|
+
|
|
18
|
+
`Memory` exposes every memory type behind one transport-agnostic surface:
|
|
19
|
+
|
|
20
|
+
| Type | Write | Read |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| Conversation turns (STM) | `recordTurn` | (feeds `buildContext`) |
|
|
23
|
+
| Semantic (facts) | `saveSemantic` | `searchSemantic`, `getSemantic` |
|
|
24
|
+
| Episodic (conversations) | `saveEpisode` | `searchEpisodes`, `listEpisodes` |
|
|
25
|
+
| Taxonomic (knowledge base) | `saveTaxonomic` | `searchTaxonomic`, `getTaxonomicTerm`, `listDomains` |
|
|
26
|
+
| Procedural (how-tos) | `saveProcedure` | `discoverProcedures`, `getProcedure` |
|
|
27
|
+
| Custom types (declared per project) | `save` | `retrieve` |
|
|
28
|
+
| Unified | — | `buildContext`, `search` |
|
|
29
|
+
|
|
30
|
+
All methods are async. Identity (`userId` / `sessionId`) is resolved per call —
|
|
31
|
+
from the argument, then a bound context, then the runtime's ambient context.
|
|
32
|
+
The custom-type operations are the exception: they carry no identity fields —
|
|
33
|
+
the platform stamps org, project, and user from the request — so they do not
|
|
34
|
+
resolve client-side identity, and they require a backend that can stamp it
|
|
35
|
+
(project-scoped Gateway routes, or an execution-scoped runtime).
|
|
36
|
+
|
|
37
|
+
## Two modes
|
|
38
|
+
|
|
39
|
+
The facade is the same in both; only how the URL, auth, and identity are
|
|
40
|
+
supplied differs.
|
|
41
|
+
|
|
42
|
+
### HTTP-direct (standalone / off-platform)
|
|
43
|
+
|
|
44
|
+
A self-contained client for scripts, tests, and code running outside the
|
|
45
|
+
platform. Configure via constructor args or `AGENTIC_MEMORY_*` env vars.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { Memory } from "@mongodb-js/agent-engine-sdk-memory";
|
|
49
|
+
|
|
50
|
+
const memory = new Memory({
|
|
51
|
+
serviceAccountToken: process.env.AGENTIC_MEMORY_SERVICE_ACCOUNT_TOKEN, // service-account access token
|
|
52
|
+
projectId: "my-project", // set => project-scoped Gateway routes
|
|
53
|
+
}); // unset => flat OE routes
|
|
54
|
+
|
|
55
|
+
await memory.saveSemantic({
|
|
56
|
+
text: "favorite color is teal",
|
|
57
|
+
label: "favorite_color",
|
|
58
|
+
userId: "u1",
|
|
59
|
+
metadata: { channel: "web", priority: "high" }, // optional caller-supplied metadata
|
|
60
|
+
});
|
|
61
|
+
const hits = await memory.searchSemantic({ query: "color", userId: "u1" });
|
|
62
|
+
await memory.close();
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
| Env var | Purpose |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `AGENTIC_MEMORY_SERVICE_ACCOUNT_TOKEN` | Service-account access token (falls back to the hosted Gateway URL when set). `AGENTIC_MEMORY_API_KEY` is a deprecated alias: it still works, prints a `DeprecationWarning`, and conflicts with the new variable (setting both throws). Mint a token with `agentengine service-account create` plus the OAuth token exchange shown in the Python SDK README. |
|
|
68
|
+
| `AGENTIC_MEMORY_BASE_URL` | Backend address. |
|
|
69
|
+
| `AGENTIC_MEMORY_PROJECT_ID` | Set => project-scoped Gateway routes; empty => flat OE routes. |
|
|
70
|
+
|
|
71
|
+
### App-bound (inside a deployed agent)
|
|
72
|
+
|
|
73
|
+
Agent code uses `app.memory` (from `@mongodb-js/agent-engine-sdk-langgraph`). Identity
|
|
74
|
+
comes from the ambient request context and calls route through the Orchestration
|
|
75
|
+
Engine's memory proxy — no tokens to manage, no `userId` threading:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
// inside a tool or entrypoint
|
|
79
|
+
await app.memory.saveSemantic({ text: "prefers email over SMS", label: "contact_pref" });
|
|
80
|
+
const context = await app.memory.buildContext({ query: "how does the user like to be contacted?" });
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
App-bound memory is reachable only while handling a platform request (it needs
|
|
84
|
+
the execution context's `OE_URL`).
|
|
85
|
+
|
|
86
|
+
### Context token budget
|
|
87
|
+
|
|
88
|
+
`buildContext({ maxTokens })` sets an optional gross context-construction budget
|
|
89
|
+
(not a fetch cost). After retrieval and ranking, the server subtracts a 500-token
|
|
90
|
+
formatting reserve, then greedily selects whole memory chunks that fit in the
|
|
91
|
+
remainder. Positive values at or below 500 leave no budget for memories. Values above 500
|
|
92
|
+
can still yield empty context when no chunk fits. `metadata.token_count` reports
|
|
93
|
+
formatted output only and excludes the reserve. Omit `maxTokens` to keep the
|
|
94
|
+
server default.
|
|
95
|
+
|
|
96
|
+
## Errors
|
|
97
|
+
|
|
98
|
+
Typed errors let callers branch on failure mode: `MemoryAuthError` (401/403),
|
|
99
|
+
`MemoryRouteNotFoundError` (404 with a route-shape hint), `MemoryBadRequestError`,
|
|
100
|
+
`MemoryServerError` (5xx / bad body), `MemoryConnectionError`,
|
|
101
|
+
`MemoryNotSupportedError` (capability gap), and `MemoryIdentityError` (a required
|
|
102
|
+
identity field could not be resolved). `MemoryNotSupportedError` covers both
|
|
103
|
+
client-side gaps and, on the custom-type routes, capability gaps only the
|
|
104
|
+
platform can report: a bare 404/405 (platform too old to serve the route) or
|
|
105
|
+
the gateway's structured 400 reporting custom memory types disabled on the
|
|
106
|
+
deployment. A structured unknown-type 404 raises `MemoryBadRequestError`.
|
|
107
|
+
Transport retries 502/503/504 up to three times.
|
|
108
|
+
|
|
109
|
+
## Development
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
npm install
|
|
113
|
+
npm test # vitest
|
|
114
|
+
npm run build # tsc
|
|
115
|
+
```
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Exceptions raised by the memory seam. */
|
|
2
|
+
/** Raised when a required identity dimension cannot be resolved. */
|
|
3
|
+
export declare class MemoryIdentityError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
/** Base for pre-HTTP client/usage errors (no status code or response body). */
|
|
7
|
+
export declare class MemoryClientError extends Error {
|
|
8
|
+
constructor(message: string, options?: ErrorOptions);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Raised when an operation is unavailable in the active transport mode.
|
|
12
|
+
*
|
|
13
|
+
* This is a client-side capability check raised before any HTTP request is
|
|
14
|
+
* attempted, so it carries no status code or response body.
|
|
15
|
+
*/
|
|
16
|
+
export declare class MemoryNotSupportedError extends MemoryClientError {
|
|
17
|
+
constructor(message: string, options?: ErrorOptions);
|
|
18
|
+
}
|
|
19
|
+
/** Base for typed transport errors from the HTTP memory transports. */
|
|
20
|
+
export declare class MemoryAPIError extends Error {
|
|
21
|
+
readonly status: number | null;
|
|
22
|
+
readonly code: string | null;
|
|
23
|
+
readonly responseText: string | null;
|
|
24
|
+
constructor(message: string, opts?: {
|
|
25
|
+
status?: number | null;
|
|
26
|
+
code?: string | null;
|
|
27
|
+
responseText?: string | null;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** Raised for 401 / 403 responses. */
|
|
31
|
+
export declare class MemoryAuthError extends MemoryAPIError {
|
|
32
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
33
|
+
}
|
|
34
|
+
/** Raised when the project's memory runtime is not yet reachable. */
|
|
35
|
+
export declare class MemoryNotProvisionedError extends MemoryAPIError {
|
|
36
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
37
|
+
}
|
|
38
|
+
/** Raised for 4xx responses other than auth / not-provisioned. */
|
|
39
|
+
export declare class MemoryBadRequestError extends MemoryAPIError {
|
|
40
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Raised when a core-loop request 404s, hinting a route-shape mismatch.
|
|
44
|
+
*
|
|
45
|
+
* The SDK selects the route shape from `projectId` presence (set => project-scoped
|
|
46
|
+
* Gateway routes; empty => flat OE routes). A 404 on a core-loop POST most often
|
|
47
|
+
* means that shape does not match the backend the `baseUrl` points at, so this
|
|
48
|
+
* carries a directional, actionable hint rather than the opaque 404. It extends
|
|
49
|
+
* `MemoryBadRequestError` so existing 4xx handling still catches it.
|
|
50
|
+
*/
|
|
51
|
+
export declare class MemoryRouteNotFoundError extends MemoryBadRequestError {
|
|
52
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Raised for 5xx responses, and for success responses whose body is unparseable
|
|
56
|
+
* or has an unexpected shape.
|
|
57
|
+
*/
|
|
58
|
+
export declare class MemoryServerError extends MemoryAPIError {
|
|
59
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
60
|
+
}
|
|
61
|
+
/** Raised when the transport fails to reach the memory backend (connect/timeout). */
|
|
62
|
+
export declare class MemoryConnectionError extends MemoryAPIError {
|
|
63
|
+
constructor(message: string, opts?: ConstructorParameters<typeof MemoryAPIError>[1]);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAE5C,oEAAoE;AACpE,qBAAa,mBAAoB,SAAQ,KAAK;gBAChC,OAAO,EAAE,MAAM;CAI5B;AAED,+EAA+E;AAC/E,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,iBAAiB;gBAChD,OAAO,EAAE,MAAM,EAAE,OA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qF;AACrF,qBAAa,qBAAsB,SAAQ,cAAc;gBAErD,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC;CAKzD"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** Exceptions raised by the memory seam. */
|
|
2
|
+
/** Raised when a required identity dimension cannot be resolved. */
|
|
3
|
+
export class MemoryIdentityError extends Error {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.name = "MemoryIdentityError";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/** Base for pre-HTTP client/usage errors (no status code or response body). */
|
|
10
|
+
export class MemoryClientError extends Error {
|
|
11
|
+
constructor(message, options) {
|
|
12
|
+
super(message, options);
|
|
13
|
+
this.name = "MemoryClientError";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Raised when an operation is unavailable in the active transport mode.
|
|
18
|
+
*
|
|
19
|
+
* This is a client-side capability check raised before any HTTP request is
|
|
20
|
+
* attempted, so it carries no status code or response body.
|
|
21
|
+
*/
|
|
22
|
+
export class MemoryNotSupportedError extends MemoryClientError {
|
|
23
|
+
constructor(message, options) {
|
|
24
|
+
super(message, options);
|
|
25
|
+
this.name = "MemoryNotSupportedError";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/** Base for typed transport errors from the HTTP memory transports. */
|
|
29
|
+
export class MemoryAPIError extends Error {
|
|
30
|
+
status;
|
|
31
|
+
code;
|
|
32
|
+
responseText;
|
|
33
|
+
constructor(message, opts = {}) {
|
|
34
|
+
// Keep `message` and the code annotation consistent: the annotated form is
|
|
35
|
+
// what `super` records, so `err.message`/`toString()`/stack all surface the
|
|
36
|
+
// code. `.code` remains separately available for programmatic branching.
|
|
37
|
+
super(opts.code ? `${message} (code=${opts.code})` : message);
|
|
38
|
+
this.name = "MemoryAPIError";
|
|
39
|
+
this.status = opts.status ?? null;
|
|
40
|
+
this.code = opts.code ?? null;
|
|
41
|
+
this.responseText = opts.responseText ?? null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** Raised for 401 / 403 responses. */
|
|
45
|
+
export class MemoryAuthError extends MemoryAPIError {
|
|
46
|
+
constructor(message, opts) {
|
|
47
|
+
super(message, opts);
|
|
48
|
+
this.name = "MemoryAuthError";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/** Raised when the project's memory runtime is not yet reachable. */
|
|
52
|
+
export class MemoryNotProvisionedError extends MemoryAPIError {
|
|
53
|
+
constructor(message, opts) {
|
|
54
|
+
super(message, opts);
|
|
55
|
+
this.name = "MemoryNotProvisionedError";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** Raised for 4xx responses other than auth / not-provisioned. */
|
|
59
|
+
export class MemoryBadRequestError extends MemoryAPIError {
|
|
60
|
+
constructor(message, opts) {
|
|
61
|
+
super(message, opts);
|
|
62
|
+
this.name = "MemoryBadRequestError";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Raised when a core-loop request 404s, hinting a route-shape mismatch.
|
|
67
|
+
*
|
|
68
|
+
* The SDK selects the route shape from `projectId` presence (set => project-scoped
|
|
69
|
+
* Gateway routes; empty => flat OE routes). A 404 on a core-loop POST most often
|
|
70
|
+
* means that shape does not match the backend the `baseUrl` points at, so this
|
|
71
|
+
* carries a directional, actionable hint rather than the opaque 404. It extends
|
|
72
|
+
* `MemoryBadRequestError` so existing 4xx handling still catches it.
|
|
73
|
+
*/
|
|
74
|
+
export class MemoryRouteNotFoundError extends MemoryBadRequestError {
|
|
75
|
+
constructor(message, opts) {
|
|
76
|
+
super(message, opts);
|
|
77
|
+
this.name = "MemoryRouteNotFoundError";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Raised for 5xx responses, and for success responses whose body is unparseable
|
|
82
|
+
* or has an unexpected shape.
|
|
83
|
+
*/
|
|
84
|
+
export class MemoryServerError extends MemoryAPIError {
|
|
85
|
+
constructor(message, opts) {
|
|
86
|
+
super(message, opts);
|
|
87
|
+
this.name = "MemoryServerError";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Raised when the transport fails to reach the memory backend (connect/timeout). */
|
|
91
|
+
export class MemoryConnectionError extends MemoryAPIError {
|
|
92
|
+
constructor(message, opts) {
|
|
93
|
+
super(message, opts);
|
|
94
|
+
this.name = "MemoryConnectionError";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `MemoryRuntime` + `MemoryCrudClient` implemented over agent-engine-sdk's
|
|
3
|
+
* `MemoryClient`.
|
|
4
|
+
*
|
|
5
|
+
* The facade needs two seams (the workflow runtime and the CRUD conveniences);
|
|
6
|
+
* `MemoryClient` already owns the HTTP mechanics both share — URL building, the
|
|
7
|
+
* transport-extras/dynamic-header hooks, the bounded 5xx/network retry, and the
|
|
8
|
+
* 404→null lookup semantics. Rather than reimplement that stack, this adapter is
|
|
9
|
+
* a thin binding: it fills the empty tenancy the backends stamp (`org_id`/
|
|
10
|
+
* `project_id` come from the trusted OE execution context or the Gateway API
|
|
11
|
+
* key), selects the route convention per backend, and translates
|
|
12
|
+
* `MemoryClient`'s `MemoryHttpError` into the memory package's typed error
|
|
13
|
+
* hierarchy (which is this package's public API).
|
|
14
|
+
*
|
|
15
|
+
* Two `MemoryClient` instances back each adapter: a retrying one for the write
|
|
16
|
+
* turn and all reads (idempotent — turns carry an idempotency key, reads are
|
|
17
|
+
* pure) and a non-retrying one for type-specific creates (no idempotency key, so
|
|
18
|
+
* a retry after the server committed could duplicate the record).
|
|
19
|
+
*/
|
|
20
|
+
import { type MemoryRouteStyle } from "@mongodb-js/agent-engine-sdk";
|
|
21
|
+
import { type ContextResponse, type CreateEpisodicResult, type CreateProceduralResult, type CreateSemanticResult, type CreateTaxonomicResult, type CustomMemoryRetrieveResult, type CustomMemorySaveResult, type MemoryChunk, type WriteTurnResult } from "../models.js";
|
|
22
|
+
import type { FetchLike, MemoryCrudClient, MemoryRuntime, RequestExtras } from "../transport.js";
|
|
23
|
+
export interface MemoryClientAdapterOptions {
|
|
24
|
+
/** Backend base URL (Gateway or OE). */
|
|
25
|
+
baseUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Memory path prefix passed through to `MemoryClient` — e.g.
|
|
28
|
+
* `/api/v1/memory` (OE) or `/api/v1/projects/<id>/memory` (Gateway).
|
|
29
|
+
*/
|
|
30
|
+
apiPrefix: string;
|
|
31
|
+
/** Route convention the backend speaks. */
|
|
32
|
+
routeStyle: MemoryRouteStyle;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the selected prefix is project-scoped. Used only to phrase the
|
|
35
|
+
* directional hint on a core-loop 404 (route-shape mismatch).
|
|
36
|
+
*/
|
|
37
|
+
projectScoped: boolean;
|
|
38
|
+
/** Static auth/identity headers (e.g. `Authorization`, `X-Agent-Engine-Execution-Id`). */
|
|
39
|
+
headers?: Record<string, string>;
|
|
40
|
+
/** Injectable fetch, primarily for tests. */
|
|
41
|
+
fetchImpl?: FetchLike;
|
|
42
|
+
/** Per-request transport extras (e.g. an mTLS dispatcher for app-bound calls). */
|
|
43
|
+
requestExtras?: RequestExtras;
|
|
44
|
+
/** Request timeout in seconds (default 30). */
|
|
45
|
+
timeout?: number;
|
|
46
|
+
}
|
|
47
|
+
/** A single `MemoryClient`-backed runtime + CRUD client for the `Memory` facade. */
|
|
48
|
+
export declare class MemoryClientAdapter implements MemoryRuntime, MemoryCrudClient {
|
|
49
|
+
private readonly retry;
|
|
50
|
+
private readonly noRetry;
|
|
51
|
+
private readonly projectScoped;
|
|
52
|
+
constructor(opts: MemoryClientAdapterOptions);
|
|
53
|
+
/** Map a `MemoryClient` failure to this package's typed error hierarchy. */
|
|
54
|
+
private mapError;
|
|
55
|
+
private routeNotFoundError;
|
|
56
|
+
recordTurn(args: Parameters<MemoryRuntime["recordTurn"]>[0]): Promise<WriteTurnResult>;
|
|
57
|
+
buildContext(args: Parameters<MemoryRuntime["buildContext"]>[0]): Promise<ContextResponse>;
|
|
58
|
+
searchSemantic(args: Parameters<MemoryRuntime["searchSemantic"]>[0]): Promise<MemoryChunk[]>;
|
|
59
|
+
searchEpisodes(args: Parameters<MemoryRuntime["searchEpisodes"]>[0]): Promise<MemoryChunk[]>;
|
|
60
|
+
searchTaxonomic(args: Parameters<MemoryRuntime["searchTaxonomic"]>[0]): Promise<MemoryChunk[]>;
|
|
61
|
+
discoverProcedures(args: Parameters<MemoryRuntime["discoverProcedures"]>[0]): Promise<Array<Record<string, unknown>>>;
|
|
62
|
+
createSemantic(args: Parameters<MemoryCrudClient["createSemantic"]>[0]): Promise<CreateSemanticResult>;
|
|
63
|
+
getSemantic(args: Parameters<MemoryCrudClient["getSemantic"]>[0]): Promise<unknown | null>;
|
|
64
|
+
createEpisodic(args: Parameters<MemoryCrudClient["createEpisodic"]>[0]): Promise<CreateEpisodicResult>;
|
|
65
|
+
listEpisodic(args: Parameters<MemoryCrudClient["listEpisodic"]>[0]): Promise<unknown[]>;
|
|
66
|
+
createTaxonomic(args: Parameters<MemoryCrudClient["createTaxonomic"]>[0]): Promise<CreateTaxonomicResult>;
|
|
67
|
+
getTaxonomic(args: Parameters<MemoryCrudClient["getTaxonomic"]>[0]): Promise<unknown | null>;
|
|
68
|
+
getDistinctDomains(args: Parameters<MemoryCrudClient["getDistinctDomains"]>[0]): Promise<string[]>;
|
|
69
|
+
createProcedural(args: Parameters<MemoryCrudClient["createProcedural"]>[0]): Promise<CreateProceduralResult>;
|
|
70
|
+
getProcedural(args: Parameters<MemoryCrudClient["getProcedural"]>[0]): Promise<unknown | null>;
|
|
71
|
+
/**
|
|
72
|
+
* A bare 404/405 means the platform predates custom-type operations, and a
|
|
73
|
+
* flag-off gateway rejects with a 400 naming the feature; the server's
|
|
74
|
+
* unknown-type 404 names the type in a structured body and must pass
|
|
75
|
+
* through untouched.
|
|
76
|
+
*/
|
|
77
|
+
private mapCustomRouteError;
|
|
78
|
+
createCustom(args: Parameters<MemoryCrudClient["createCustom"]>[0]): Promise<CustomMemorySaveResult>;
|
|
79
|
+
retrieveCustom(args: Parameters<MemoryCrudClient["retrieveCustom"]>[0]): Promise<CustomMemoryRetrieveResult>;
|
|
80
|
+
close(): void;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=client_adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client_adapter.d.ts","sourceRoot":"","sources":["../../src/http/client_adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAWtC,OAAO,EAUL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAezB,MAAM,WAAW,0BAA0B;IACzC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,UAAU,EAAE,gBAAgB,CAAC;IAC7B;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,+CAA+C;IAC/C,OAAO,CA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