@redis-iris/agent-memory 0.1.1 → 0.2.0
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/README.md +10 -20
- package/dist/commonjs/funcs/get-session-memory.d.ts +1 -1
- package/dist/commonjs/funcs/get-session-memory.d.ts.map +1 -1
- package/dist/commonjs/funcs/get-session-memory.js +8 -3
- package/dist/commonjs/funcs/get-session-memory.js.map +1 -1
- package/dist/commonjs/funcs/store-health.d.ts +16 -0
- package/dist/commonjs/funcs/store-health.d.ts.map +1 -0
- package/dist/commonjs/funcs/store-health.js +114 -0
- package/dist/commonjs/funcs/store-health.js.map +1 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.d.ts +15 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.js +132 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/http.d.ts +1 -1
- package/dist/commonjs/lib/http.d.ts.map +1 -1
- package/dist/commonjs/lib/http.js +1 -1
- package/dist/commonjs/lib/http.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +5 -4
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +6 -7
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/add-session-event-request-content.d.ts +9 -0
- package/dist/commonjs/models/add-session-event-request-content.d.ts.map +1 -1
- package/dist/commonjs/models/add-session-event-request-content.js +1 -0
- package/dist/commonjs/models/add-session-event-request-content.js.map +1 -1
- package/dist/commonjs/models/attribute-filter-clause.d.ts +63 -0
- package/dist/commonjs/models/attribute-filter-clause.d.ts.map +1 -0
- package/dist/commonjs/models/attribute-filter-clause.js +85 -0
- package/dist/commonjs/models/attribute-filter-clause.js.map +1 -0
- package/dist/commonjs/models/create-memory-record.d.ts +14 -6
- package/dist/commonjs/models/create-memory-record.d.ts.map +1 -1
- package/dist/commonjs/models/create-memory-record.js +3 -3
- package/dist/commonjs/models/create-memory-record.js.map +1 -1
- package/dist/commonjs/models/get-long-term-memory-response-content.d.ts +9 -4
- package/dist/commonjs/models/get-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/get-long-term-memory-response-content.js +2 -2
- package/dist/commonjs/models/get-long-term-memory-response-content.js.map +1 -1
- package/dist/commonjs/models/get-session-memory-response-content.d.ts +14 -1
- package/dist/commonjs/models/get-session-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/get-session-memory-response-content.js +3 -0
- package/dist/commonjs/models/get-session-memory-response-content.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +6 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/long-term-memory-filter.d.ts +21 -5
- package/dist/commonjs/models/long-term-memory-filter.d.ts.map +1 -1
- package/dist/commonjs/models/long-term-memory-filter.js +2 -0
- package/dist/commonjs/models/long-term-memory-filter.js.map +1 -1
- package/dist/commonjs/models/memory-record.d.ts +9 -4
- package/dist/commonjs/models/memory-record.d.ts.map +1 -1
- package/dist/commonjs/models/memory-record.js +2 -2
- package/dist/commonjs/models/memory-record.js.map +1 -1
- package/dist/commonjs/models/memory-type-filter.d.ts +1 -1
- package/dist/commonjs/models/namespace-filter.d.ts +7 -1
- package/dist/commonjs/models/namespace-filter.d.ts.map +1 -1
- package/dist/commonjs/models/namespace-filter.js.map +1 -1
- package/dist/commonjs/models/operations/get-session-memory.d.ts +5 -0
- package/dist/commonjs/models/operations/get-session-memory.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-session-memory.js +1 -0
- package/dist/commonjs/models/operations/get-session-memory.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-sessions.d.ts +1 -1
- package/dist/commonjs/models/operations/store-health.d.ts +11 -0
- package/dist/commonjs/models/operations/store-health.d.ts.map +1 -0
- package/dist/commonjs/models/operations/store-health.js +48 -0
- package/dist/commonjs/models/operations/store-health.js.map +1 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.d.ts +21 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.js +52 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.js.map +1 -0
- package/dist/commonjs/models/owner-id-filter.d.ts +1 -1
- package/dist/commonjs/models/session-id-filter.d.ts +1 -1
- package/dist/commonjs/models/session-summary.d.ts +40 -0
- package/dist/commonjs/models/session-summary.d.ts.map +1 -0
- package/dist/commonjs/models/session-summary.js +56 -0
- package/dist/commonjs/models/session-summary.js.map +1 -0
- package/dist/commonjs/models/store-health-feature.d.ts +17 -0
- package/dist/commonjs/models/store-health-feature.d.ts.map +1 -0
- package/dist/commonjs/models/store-health-feature.js +52 -0
- package/dist/commonjs/models/store-health-feature.js.map +1 -0
- package/dist/commonjs/models/store-health-response-content.d.ts +21 -0
- package/dist/commonjs/models/store-health-response-content.d.ts.map +1 -0
- package/dist/commonjs/models/store-health-response-content.js +54 -0
- package/dist/commonjs/models/store-health-response-content.js.map +1 -0
- package/dist/commonjs/models/store-health-status.d.ts +17 -0
- package/dist/commonjs/models/store-health-status.d.ts.map +1 -0
- package/dist/commonjs/models/{memory-type.js → store-health-status.js} +9 -11
- package/dist/commonjs/models/store-health-status.js.map +1 -0
- package/dist/commonjs/models/topics-filter.d.ts +1 -1
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.d.ts +41 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.d.ts.map +1 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.js +53 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.js.map +1 -0
- package/dist/commonjs/models/update-long-term-memory-request-content.d.ts +7 -4
- package/dist/commonjs/models/update-long-term-memory-request-content.d.ts.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-request-content.js +1 -2
- package/dist/commonjs/models/update-long-term-memory-request-content.js.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-response-content.d.ts +9 -4
- package/dist/commonjs/models/update-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-response-content.js +2 -2
- package/dist/commonjs/models/update-long-term-memory-response-content.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +10 -1
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +16 -2
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/get-session-memory.d.ts +1 -1
- package/dist/esm/funcs/get-session-memory.d.ts.map +1 -1
- package/dist/esm/funcs/get-session-memory.js +9 -4
- package/dist/esm/funcs/get-session-memory.js.map +1 -1
- package/dist/esm/funcs/store-health.d.ts +16 -0
- package/dist/esm/funcs/store-health.d.ts.map +1 -0
- package/dist/esm/funcs/store-health.js +78 -0
- package/dist/esm/funcs/store-health.js.map +1 -0
- package/dist/esm/funcs/update-long-term-memory-fields.d.ts +15 -0
- package/dist/esm/funcs/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/esm/funcs/update-long-term-memory-fields.js +96 -0
- package/dist/esm/funcs/update-long-term-memory-fields.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/http.d.ts +1 -1
- package/dist/esm/lib/http.d.ts.map +1 -1
- package/dist/esm/lib/http.js +1 -1
- package/dist/esm/lib/http.js.map +1 -1
- package/dist/esm/lib/security.d.ts +5 -4
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +4 -6
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/add-session-event-request-content.d.ts +9 -0
- package/dist/esm/models/add-session-event-request-content.d.ts.map +1 -1
- package/dist/esm/models/add-session-event-request-content.js +1 -0
- package/dist/esm/models/add-session-event-request-content.js.map +1 -1
- package/dist/esm/models/attribute-filter-clause.d.ts +63 -0
- package/dist/esm/models/attribute-filter-clause.d.ts.map +1 -0
- package/dist/esm/models/attribute-filter-clause.js +44 -0
- package/dist/esm/models/attribute-filter-clause.js.map +1 -0
- package/dist/esm/models/create-memory-record.d.ts +14 -6
- package/dist/esm/models/create-memory-record.d.ts.map +1 -1
- package/dist/esm/models/create-memory-record.js +3 -3
- package/dist/esm/models/create-memory-record.js.map +1 -1
- package/dist/esm/models/get-long-term-memory-response-content.d.ts +9 -4
- package/dist/esm/models/get-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/get-long-term-memory-response-content.js +2 -2
- package/dist/esm/models/get-long-term-memory-response-content.js.map +1 -1
- package/dist/esm/models/get-session-memory-response-content.d.ts +14 -1
- package/dist/esm/models/get-session-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/get-session-memory-response-content.js +3 -0
- package/dist/esm/models/get-session-memory-response-content.js.map +1 -1
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/long-term-memory-filter.d.ts +21 -5
- package/dist/esm/models/long-term-memory-filter.d.ts.map +1 -1
- package/dist/esm/models/long-term-memory-filter.js +2 -0
- package/dist/esm/models/long-term-memory-filter.js.map +1 -1
- package/dist/esm/models/memory-record.d.ts +9 -4
- package/dist/esm/models/memory-record.d.ts.map +1 -1
- package/dist/esm/models/memory-record.js +2 -2
- package/dist/esm/models/memory-record.js.map +1 -1
- package/dist/esm/models/memory-type-filter.d.ts +1 -1
- package/dist/esm/models/namespace-filter.d.ts +7 -1
- package/dist/esm/models/namespace-filter.d.ts.map +1 -1
- package/dist/esm/models/namespace-filter.js.map +1 -1
- package/dist/esm/models/operations/get-session-memory.d.ts +5 -0
- package/dist/esm/models/operations/get-session-memory.d.ts.map +1 -1
- package/dist/esm/models/operations/get-session-memory.js +1 -0
- package/dist/esm/models/operations/get-session-memory.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-sessions.d.ts +1 -1
- package/dist/esm/models/operations/store-health.d.ts +11 -0
- package/dist/esm/models/operations/store-health.d.ts.map +1 -0
- package/dist/esm/models/operations/store-health.js +11 -0
- package/dist/esm/models/operations/store-health.js.map +1 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.d.ts +21 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.js +15 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.js.map +1 -0
- package/dist/esm/models/owner-id-filter.d.ts +1 -1
- package/dist/esm/models/session-id-filter.d.ts +1 -1
- package/dist/esm/models/session-summary.d.ts +40 -0
- package/dist/esm/models/session-summary.d.ts.map +1 -0
- package/dist/esm/models/session-summary.js +19 -0
- package/dist/esm/models/session-summary.js.map +1 -0
- package/dist/esm/models/store-health-feature.d.ts +17 -0
- package/dist/esm/models/store-health-feature.d.ts.map +1 -0
- package/dist/esm/models/store-health-feature.js +15 -0
- package/dist/esm/models/store-health-feature.js.map +1 -0
- package/dist/esm/models/store-health-response-content.d.ts +21 -0
- package/dist/esm/models/store-health-response-content.d.ts.map +1 -0
- package/dist/esm/models/store-health-response-content.js +17 -0
- package/dist/esm/models/store-health-response-content.js.map +1 -0
- package/dist/esm/models/store-health-status.d.ts +17 -0
- package/dist/esm/models/store-health-status.d.ts.map +1 -0
- package/dist/esm/models/store-health-status.js +16 -0
- package/dist/esm/models/store-health-status.js.map +1 -0
- package/dist/esm/models/topics-filter.d.ts +1 -1
- package/dist/esm/models/update-long-term-memory-fields-request-content.d.ts +41 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.d.ts.map +1 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.js +16 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.js.map +1 -0
- package/dist/esm/models/update-long-term-memory-request-content.d.ts +7 -4
- package/dist/esm/models/update-long-term-memory-request-content.d.ts.map +1 -1
- package/dist/esm/models/update-long-term-memory-request-content.js +1 -2
- package/dist/esm/models/update-long-term-memory-request-content.js.map +1 -1
- package/dist/esm/models/update-long-term-memory-response-content.d.ts +9 -4
- package/dist/esm/models/update-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/update-long-term-memory-response-content.js +2 -2
- package/dist/esm/models/update-long-term-memory-response-content.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +10 -1
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +16 -2
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/get-session-memory.ts +10 -1
- package/src/funcs/store-health.ts +194 -0
- package/src/funcs/update-long-term-memory-fields.ts +220 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/models/add-session-event-request-content.ts +10 -0
- package/src/models/attribute-filter-clause.ts +135 -0
- package/src/models/create-memory-record.ts +13 -8
- package/src/models/get-long-term-memory-response-content.ts +9 -5
- package/src/models/get-session-memory-response-content.ts +19 -1
- package/src/models/index.ts +6 -1
- package/src/models/long-term-memory-filter.ts +22 -5
- package/src/models/memory-record.ts +9 -5
- package/src/models/memory-type-filter.ts +1 -1
- package/src/models/namespace-filter.ts +7 -1
- package/src/models/operations/get-session-memory.ts +6 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/list-sessions.ts +1 -1
- package/src/models/operations/store-health.ts +30 -0
- package/src/models/operations/update-long-term-memory-fields.ts +45 -0
- package/src/models/owner-id-filter.ts +1 -1
- package/src/models/session-id-filter.ts +1 -1
- package/src/models/session-summary.ts +67 -0
- package/src/models/store-health-feature.ts +42 -0
- package/src/models/store-health-response-content.ts +48 -0
- package/src/models/store-health-status.ts +28 -0
- package/src/models/topics-filter.ts +1 -1
- package/src/models/update-long-term-memory-fields-request-content.ts +63 -0
- package/src/models/update-long-term-memory-request-content.ts +8 -5
- package/src/models/update-long-term-memory-response-content.ts +9 -5
- package/src/sdk/sdk.ts +35 -0
- package/dist/commonjs/models/memory-type.d.ts +0 -19
- package/dist/commonjs/models/memory-type.d.ts.map +0 -1
- package/dist/commonjs/models/memory-type.js.map +0 -1
- package/dist/esm/models/memory-type.d.ts +0 -19
- package/dist/esm/models/memory-type.d.ts.map +0 -1
- package/dist/esm/models/memory-type.js +0 -18
- package/dist/esm/models/memory-type.js.map +0 -1
- package/src/models/memory-type.ts +0 -34
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1dc482213cab
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Compacted summary of older session history for a session.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*
|
|
16
|
+
* This is derived session state maintained by the background summarization workflow, not a conversation event. It is present only after at least one summarization cycle has completed.
|
|
17
|
+
*/
|
|
18
|
+
export type SessionSummary = {
|
|
19
|
+
/**
|
|
20
|
+
* The summary text, a single coherent block.
|
|
21
|
+
*/
|
|
22
|
+
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* Boundary event ID. This event and all events before it (by array position) are covered by the summary; `events` contains the retained turns after this boundary.
|
|
25
|
+
*/
|
|
26
|
+
summarizedUpToEventId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Timestamp when the summary was first created (UTC). Preserved across re-summarization cycles.
|
|
29
|
+
*/
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Timestamp when the summary was last regenerated (UTC). Updated on every summarization cycle. Equal to createdAt on the first cycle.
|
|
33
|
+
*/
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Metadata as a JSON object (e.g., model name, token count). Always present; defaults to an empty object when no metadata was supplied.
|
|
37
|
+
*/
|
|
38
|
+
metadata?: any | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Cumulative number of session events folded into this summary across all summarization cycles. Always positive. A value of 1 may indicate a summary created before this field was tracked; it self-corrects to a real count on the next summarization cycle.
|
|
41
|
+
*/
|
|
42
|
+
summarizedEvents: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const SessionSummary$inboundSchema: z.ZodType<
|
|
47
|
+
SessionSummary,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({
|
|
51
|
+
text: z.string(),
|
|
52
|
+
summarizedUpToEventId: z.string(),
|
|
53
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
54
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
55
|
+
metadata: z.any().optional(),
|
|
56
|
+
summarizedEvents: z.number().int(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function sessionSummaryFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<SessionSummary, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => SessionSummary$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'SessionSummary' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b5d2d2b8c673
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
StoreHealthStatus,
|
|
12
|
+
StoreHealthStatus$inboundSchema,
|
|
13
|
+
} from "./store-health-status.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Feature-level store health.
|
|
17
|
+
*/
|
|
18
|
+
export type StoreHealthFeature = {
|
|
19
|
+
/**
|
|
20
|
+
* Store health status.
|
|
21
|
+
*/
|
|
22
|
+
status: StoreHealthStatus;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const StoreHealthFeature$inboundSchema: z.ZodType<
|
|
27
|
+
StoreHealthFeature,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
status: StoreHealthStatus$inboundSchema,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function storeHealthFeatureFromJSON(
|
|
35
|
+
jsonString: string,
|
|
36
|
+
): SafeParseResult<StoreHealthFeature, SDKValidationError> {
|
|
37
|
+
return safeParse(
|
|
38
|
+
jsonString,
|
|
39
|
+
(x) => StoreHealthFeature$inboundSchema.parse(JSON.parse(x)),
|
|
40
|
+
`Failed to parse 'StoreHealthFeature' from JSON`,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b8bf87d488ff
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
StoreHealthFeature,
|
|
12
|
+
StoreHealthFeature$inboundSchema,
|
|
13
|
+
} from "./store-health-feature.js";
|
|
14
|
+
import {
|
|
15
|
+
StoreHealthStatus,
|
|
16
|
+
StoreHealthStatus$inboundSchema,
|
|
17
|
+
} from "./store-health-status.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Store-scoped RAM feature health.
|
|
21
|
+
*/
|
|
22
|
+
export type StoreHealthResponseContent = {
|
|
23
|
+
/**
|
|
24
|
+
* Store health status.
|
|
25
|
+
*/
|
|
26
|
+
status: StoreHealthStatus;
|
|
27
|
+
features: { [k: string]: StoreHealthFeature };
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const StoreHealthResponseContent$inboundSchema: z.ZodType<
|
|
32
|
+
StoreHealthResponseContent,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
status: StoreHealthStatus$inboundSchema,
|
|
37
|
+
features: z.record(StoreHealthFeature$inboundSchema),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function storeHealthResponseContentFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<StoreHealthResponseContent, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => StoreHealthResponseContent$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'StoreHealthResponseContent' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d59e984c90e9
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../types/enums.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Store health status.
|
|
12
|
+
*/
|
|
13
|
+
export const StoreHealthStatus = {
|
|
14
|
+
Healthy: "healthy",
|
|
15
|
+
Degraded: "degraded",
|
|
16
|
+
Unavailable: "unavailable",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Store health status.
|
|
20
|
+
*/
|
|
21
|
+
export type StoreHealthStatus = OpenEnum<typeof StoreHealthStatus>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const StoreHealthStatus$inboundSchema: z.ZodType<
|
|
25
|
+
StoreHealthStatus,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = openEnums.inboundSchema(StoreHealthStatus);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3e5d9fd9c7a3
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type- and namespace-scoped field update request for a custom-typed long-term memory record.
|
|
10
|
+
*/
|
|
11
|
+
export type UpdateLongTermMemoryFieldsRequestContent = {
|
|
12
|
+
/**
|
|
13
|
+
* The caller's bound memory type. The update is rejected unless the record's stored memoryType matches.
|
|
14
|
+
*/
|
|
15
|
+
memoryType: string;
|
|
16
|
+
/**
|
|
17
|
+
* The caller's namespace. The update is rejected with 409 unless the record's stored namespace matches exactly.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*
|
|
21
|
+
* Omit it to assert that the record has no namespace — an omitted value matches only records stored without one, it does not mean "any namespace". The check is applied atomically with the update, so a record cannot be re-filed into another namespace between the check and the write.
|
|
22
|
+
*/
|
|
23
|
+
namespace?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Updated text content (1-50000 chars). Omit to leave the text unchanged.
|
|
26
|
+
*/
|
|
27
|
+
text?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Structured record attributes: a map from the custom memory type's field name to that field's value. Values are arbitrary JSON matching the field's declared type (str, int, float, bool, list[str], list[float], or object).
|
|
30
|
+
*/
|
|
31
|
+
attributes?: { [k: string]: any } | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type UpdateLongTermMemoryFieldsRequestContent$Outbound = {
|
|
36
|
+
memoryType: string;
|
|
37
|
+
namespace?: string | undefined;
|
|
38
|
+
text?: string | undefined;
|
|
39
|
+
attributes?: { [k: string]: any } | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const UpdateLongTermMemoryFieldsRequestContent$outboundSchema: z.ZodType<
|
|
44
|
+
UpdateLongTermMemoryFieldsRequestContent$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
UpdateLongTermMemoryFieldsRequestContent
|
|
47
|
+
> = z.object({
|
|
48
|
+
memoryType: z.string(),
|
|
49
|
+
namespace: z.string().optional(),
|
|
50
|
+
text: z.string().optional(),
|
|
51
|
+
attributes: z.record(z.any()).optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function updateLongTermMemoryFieldsRequestContentToJSON(
|
|
55
|
+
updateLongTermMemoryFieldsRequestContent:
|
|
56
|
+
UpdateLongTermMemoryFieldsRequestContent,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
UpdateLongTermMemoryFieldsRequestContent$outboundSchema.parse(
|
|
60
|
+
updateLongTermMemoryFieldsRequestContent,
|
|
61
|
+
),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
|
-
import { MemoryType, MemoryType$outboundSchema } from "./memory-type.js";
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Partial update request for a long-term memory record.
|
|
@@ -15,19 +14,23 @@ export type UpdateLongTermMemoryRequestContent = {
|
|
|
15
14
|
*/
|
|
16
15
|
text?: string | undefined;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
17
|
+
* Updated memory type. Built-in or a custom type registered on the store.
|
|
19
18
|
*/
|
|
20
|
-
memoryType?:
|
|
19
|
+
memoryType?: string | undefined;
|
|
21
20
|
/**
|
|
22
21
|
* Updated topics (max 50 topics, each 1-100 chars).
|
|
23
22
|
*/
|
|
24
23
|
topics?: Array<string> | undefined;
|
|
25
24
|
/**
|
|
26
25
|
* Updated namespace. When provided, must be 1-64 chars alphanumeric and dashes; omit the field or send an empty string to clear.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
*
|
|
29
|
+
* This is the only way to change the namespace of an existing record, including one produced by extraction: a record inherits its session's namespace at creation and is not revised afterwards, so use this to re-file a record or to add a namespace to one created before the session had any.
|
|
27
30
|
*/
|
|
28
31
|
namespace?: string | undefined;
|
|
29
32
|
/**
|
|
30
|
-
* Updated owner ID. When provided, must be 1-64 chars alphanumeric and dashes; omit the field
|
|
33
|
+
* Updated owner ID. When provided, must be 1-64 chars alphanumeric and dashes and non-empty; omit the field to leave unchanged. Clearing is not supported because ownerId is required.
|
|
31
34
|
*/
|
|
32
35
|
ownerId?: string | undefined;
|
|
33
36
|
/**
|
|
@@ -53,7 +56,7 @@ export const UpdateLongTermMemoryRequestContent$outboundSchema: z.ZodType<
|
|
|
53
56
|
UpdateLongTermMemoryRequestContent
|
|
54
57
|
> = z.object({
|
|
55
58
|
text: z.string().optional(),
|
|
56
|
-
memoryType:
|
|
59
|
+
memoryType: z.string().optional(),
|
|
57
60
|
topics: z.array(z.string()).optional(),
|
|
58
61
|
namespace: z.string().optional(),
|
|
59
62
|
ownerId: z.string().optional(),
|
|
@@ -7,7 +7,6 @@ import * as z from "zod/v3";
|
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
-
import { MemoryType, MemoryType$inboundSchema } from "./memory-type.js";
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* A long-term memory record.
|
|
@@ -22,9 +21,9 @@ export type UpdateLongTermMemoryResponseContent = {
|
|
|
22
21
|
*/
|
|
23
22
|
text: string;
|
|
24
23
|
/**
|
|
25
|
-
* Type of
|
|
24
|
+
* Type of memory. Built-in or a custom type registered on the store.
|
|
26
25
|
*/
|
|
27
|
-
memoryType?:
|
|
26
|
+
memoryType?: string | undefined;
|
|
28
27
|
/**
|
|
29
28
|
* Session ID associated with this memory.
|
|
30
29
|
*/
|
|
@@ -34,13 +33,17 @@ export type UpdateLongTermMemoryResponseContent = {
|
|
|
34
33
|
*/
|
|
35
34
|
ownerId?: string | undefined;
|
|
36
35
|
/**
|
|
37
|
-
* Namespace for logical grouping.
|
|
36
|
+
* Namespace for logical grouping. Absent when the record has none: either it was written directly without one, or it was extracted from a session that has no namespace.
|
|
38
37
|
*/
|
|
39
38
|
namespace?: string | undefined;
|
|
40
39
|
/**
|
|
41
40
|
* Topic tags for categorization.
|
|
42
41
|
*/
|
|
43
42
|
topics?: Array<string> | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Structured record attributes: a map from the custom memory type's field name to that field's value. Values are arbitrary JSON matching the field's declared type (str, int, float, bool, list[str], list[float], or object).
|
|
45
|
+
*/
|
|
46
|
+
attributes?: { [k: string]: any } | undefined;
|
|
44
47
|
/**
|
|
45
48
|
* Timestamp when the memory was created (UTC).
|
|
46
49
|
*/
|
|
@@ -59,11 +62,12 @@ export const UpdateLongTermMemoryResponseContent$inboundSchema: z.ZodType<
|
|
|
59
62
|
> = z.object({
|
|
60
63
|
id: z.string(),
|
|
61
64
|
text: z.string(),
|
|
62
|
-
memoryType:
|
|
65
|
+
memoryType: z.string().optional(),
|
|
63
66
|
sessionId: z.string().optional(),
|
|
64
67
|
ownerId: z.string().optional(),
|
|
65
68
|
namespace: z.string().optional(),
|
|
66
69
|
topics: z.array(z.string()).optional(),
|
|
70
|
+
attributes: z.record(z.any()).optional(),
|
|
67
71
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
68
72
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
69
73
|
});
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -14,9 +14,12 @@ import { getSessionMemory } from "../funcs/get-session-memory.js";
|
|
|
14
14
|
import { health } from "../funcs/health.js";
|
|
15
15
|
import { listSessions } from "../funcs/list-sessions.js";
|
|
16
16
|
import { searchLongTermMemory } from "../funcs/search-long-term-memory.js";
|
|
17
|
+
import { storeHealth } from "../funcs/store-health.js";
|
|
18
|
+
import { updateLongTermMemoryFields } from "../funcs/update-long-term-memory-fields.js";
|
|
17
19
|
import { updateLongTermMemory } from "../funcs/update-long-term-memory.js";
|
|
18
20
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
19
21
|
import * as models from "../models/index.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
20
23
|
import { unwrapAsync } from "../types/fp.js";
|
|
21
24
|
|
|
22
25
|
export class AgentMemory extends ClientSDK {
|
|
@@ -32,6 +35,20 @@ export class AgentMemory extends ClientSDK {
|
|
|
32
35
|
));
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Returns read-only health for applicable store-scoped RAM features.
|
|
40
|
+
*/
|
|
41
|
+
async storeHealth(
|
|
42
|
+
request?: operations.StoreHealthRequest | undefined,
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): Promise<models.StoreHealthResponseContent> {
|
|
45
|
+
return unwrapAsync(storeHealth(
|
|
46
|
+
this,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
35
52
|
/**
|
|
36
53
|
* Deletes long-term memories in bulk by their IDs.
|
|
37
54
|
*/
|
|
@@ -104,6 +121,22 @@ export class AgentMemory extends ClientSDK {
|
|
|
104
121
|
));
|
|
105
122
|
}
|
|
106
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Atomically updates a custom-typed long-term memory's text and/or attributes, scoped to the caller's bound memory type. Used by the custom-extraction worker.
|
|
126
|
+
*/
|
|
127
|
+
async updateLongTermMemoryFields(
|
|
128
|
+
memoryId: string,
|
|
129
|
+
body: models.UpdateLongTermMemoryFieldsRequestContent,
|
|
130
|
+
options?: RequestOptions,
|
|
131
|
+
): Promise<void> {
|
|
132
|
+
return unwrapAsync(updateLongTermMemoryFields(
|
|
133
|
+
this,
|
|
134
|
+
memoryId,
|
|
135
|
+
body,
|
|
136
|
+
options,
|
|
137
|
+
));
|
|
138
|
+
}
|
|
139
|
+
|
|
107
140
|
/**
|
|
108
141
|
* Returns a paginated list of session IDs for a store.
|
|
109
142
|
*/
|
|
@@ -157,11 +190,13 @@ export class AgentMemory extends ClientSDK {
|
|
|
157
190
|
*/
|
|
158
191
|
async getSessionMemory(
|
|
159
192
|
sessionId: string,
|
|
193
|
+
includeSummarisedEvents?: boolean | undefined,
|
|
160
194
|
options?: RequestOptions,
|
|
161
195
|
): Promise<models.GetSessionMemoryResponseContent> {
|
|
162
196
|
return unwrapAsync(getSessionMemory(
|
|
163
197
|
this,
|
|
164
198
|
sessionId,
|
|
199
|
+
includeSummarisedEvents,
|
|
165
200
|
options,
|
|
166
201
|
));
|
|
167
202
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Type of long-term memory.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MemoryType: {
|
|
7
|
-
readonly Semantic: "semantic";
|
|
8
|
-
readonly Episodic: "episodic";
|
|
9
|
-
readonly Message: "message";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Type of long-term memory.
|
|
13
|
-
*/
|
|
14
|
-
export type MemoryType = OpenEnum<typeof MemoryType>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const MemoryType$inboundSchema: z.ZodType<MemoryType, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const MemoryType$outboundSchema: z.ZodType<string, z.ZodTypeDef, MemoryType>;
|
|
19
|
-
//# sourceMappingURL=memory-type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-type.d.ts","sourceRoot":"","sources":["../../../src/models/memory-type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAC8B,CAAC;AACxC,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,UAAU,CAC4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-type.js","sourceRoot":"","sources":["../../../src/models/memory-type.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,SAAS,CAAC,aAAa,CAAC,QAAA,UAAU,CAAC,CAAC;AACxC,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,SAAS,CAAC,cAAc,CAAC,QAAA,UAAU,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Type of long-term memory.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MemoryType: {
|
|
7
|
-
readonly Semantic: "semantic";
|
|
8
|
-
readonly Episodic: "episodic";
|
|
9
|
-
readonly Message: "message";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Type of long-term memory.
|
|
13
|
-
*/
|
|
14
|
-
export type MemoryType = OpenEnum<typeof MemoryType>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const MemoryType$inboundSchema: z.ZodType<MemoryType, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const MemoryType$outboundSchema: z.ZodType<string, z.ZodTypeDef, MemoryType>;
|
|
19
|
-
//# sourceMappingURL=memory-type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-type.d.ts","sourceRoot":"","sources":["../../../src/models/memory-type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAC8B,CAAC;AACxC,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,UAAU,CAC4B,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 3a8e06afc770
|
|
4
|
-
*/
|
|
5
|
-
import * as openEnums from "../types/enums.js";
|
|
6
|
-
/**
|
|
7
|
-
* Type of long-term memory.
|
|
8
|
-
*/
|
|
9
|
-
export const MemoryType = {
|
|
10
|
-
Semantic: "semantic",
|
|
11
|
-
Episodic: "episodic",
|
|
12
|
-
Message: "message",
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const MemoryType$inboundSchema = openEnums.inboundSchema(MemoryType);
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const MemoryType$outboundSchema = openEnums.outboundSchema(MemoryType);
|
|
18
|
-
//# sourceMappingURL=memory-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-type.js","sourceRoot":"","sources":["../../../src/models/memory-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AACxC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 3a8e06afc770
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v3";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Type of long-term memory.
|
|
12
|
-
*/
|
|
13
|
-
export const MemoryType = {
|
|
14
|
-
Semantic: "semantic",
|
|
15
|
-
Episodic: "episodic",
|
|
16
|
-
Message: "message",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Type of long-term memory.
|
|
20
|
-
*/
|
|
21
|
-
export type MemoryType = OpenEnum<typeof MemoryType>;
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const MemoryType$inboundSchema: z.ZodType<
|
|
25
|
-
MemoryType,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = openEnums.inboundSchema(MemoryType);
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const MemoryType$outboundSchema: z.ZodType<
|
|
31
|
-
string,
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
MemoryType
|
|
34
|
-
> = openEnums.outboundSchema(MemoryType);
|