@dakera-ai/dakera 0.9.8 → 0.9.9
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/dist/index.d.mts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -487,6 +487,10 @@ interface RecallRequest {
|
|
|
487
487
|
memory_type?: string;
|
|
488
488
|
/** Minimum importance threshold */
|
|
489
489
|
min_importance?: number;
|
|
490
|
+
/** CE-7: only recall memories created at or after this ISO-8601 timestamp */
|
|
491
|
+
since?: string;
|
|
492
|
+
/** CE-7: only recall memories created at or before this ISO-8601 timestamp */
|
|
493
|
+
until?: string;
|
|
490
494
|
}
|
|
491
495
|
/** Request to update importance */
|
|
492
496
|
interface UpdateImportanceRequest {
|
|
@@ -1667,6 +1671,27 @@ interface MemoryPolicy {
|
|
|
1667
1671
|
spaced_repetition_factor?: number;
|
|
1668
1672
|
/** Base interval in seconds for spaced repetition (default: 86 400 = 1 d). */
|
|
1669
1673
|
spaced_repetition_base_interval_seconds?: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Enable background DBSCAN deduplication for this namespace.
|
|
1676
|
+
* When `true` the server merges semantically near-duplicate memories every
|
|
1677
|
+
* `consolidation_interval_hours` hours. Default: `false`.
|
|
1678
|
+
*/
|
|
1679
|
+
consolidation_enabled?: boolean;
|
|
1680
|
+
/**
|
|
1681
|
+
* DBSCAN epsilon — cosine-similarity threshold to consider two memories
|
|
1682
|
+
* duplicates (default: `0.92`; higher = only merge very close neighbours).
|
|
1683
|
+
*/
|
|
1684
|
+
consolidation_threshold?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* How often (in hours) the background consolidation job runs for this
|
|
1687
|
+
* namespace (default: `24`).
|
|
1688
|
+
*/
|
|
1689
|
+
consolidation_interval_hours?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* **Read-only.** Lifetime count of memories merged by the consolidation
|
|
1692
|
+
* engine. The server manages this field; any value you send is ignored.
|
|
1693
|
+
*/
|
|
1694
|
+
consolidated_count?: number;
|
|
1670
1695
|
}
|
|
1671
1696
|
|
|
1672
1697
|
/**
|
|
@@ -2198,6 +2223,8 @@ declare class DakeraClient {
|
|
|
2198
2223
|
* @param options.include_associated - COG-2: traverse KG depth-1 and include
|
|
2199
2224
|
* associatively linked memories in `associated_memories` (default: false)
|
|
2200
2225
|
* @param options.associated_memories_cap - COG-2: max associated memories (default: 10, max: 10)
|
|
2226
|
+
* @param options.since - CE-7: only recall memories created at or after this ISO-8601 timestamp
|
|
2227
|
+
* @param options.until - CE-7: only recall memories created at or before this ISO-8601 timestamp
|
|
2201
2228
|
* @returns RecallResponse with `memories` and optionally `associated_memories`
|
|
2202
2229
|
*/
|
|
2203
2230
|
recall(agentId: string, query: string, options?: {
|
|
@@ -2206,6 +2233,8 @@ declare class DakeraClient {
|
|
|
2206
2233
|
min_importance?: number;
|
|
2207
2234
|
include_associated?: boolean;
|
|
2208
2235
|
associated_memories_cap?: number;
|
|
2236
|
+
since?: string;
|
|
2237
|
+
until?: string;
|
|
2209
2238
|
}): Promise<RecallResponse>;
|
|
2210
2239
|
/** Get a specific memory */
|
|
2211
2240
|
getMemory(agentId: string, memoryId: string): Promise<Memory>;
|
package/dist/index.d.ts
CHANGED
|
@@ -487,6 +487,10 @@ interface RecallRequest {
|
|
|
487
487
|
memory_type?: string;
|
|
488
488
|
/** Minimum importance threshold */
|
|
489
489
|
min_importance?: number;
|
|
490
|
+
/** CE-7: only recall memories created at or after this ISO-8601 timestamp */
|
|
491
|
+
since?: string;
|
|
492
|
+
/** CE-7: only recall memories created at or before this ISO-8601 timestamp */
|
|
493
|
+
until?: string;
|
|
490
494
|
}
|
|
491
495
|
/** Request to update importance */
|
|
492
496
|
interface UpdateImportanceRequest {
|
|
@@ -1667,6 +1671,27 @@ interface MemoryPolicy {
|
|
|
1667
1671
|
spaced_repetition_factor?: number;
|
|
1668
1672
|
/** Base interval in seconds for spaced repetition (default: 86 400 = 1 d). */
|
|
1669
1673
|
spaced_repetition_base_interval_seconds?: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Enable background DBSCAN deduplication for this namespace.
|
|
1676
|
+
* When `true` the server merges semantically near-duplicate memories every
|
|
1677
|
+
* `consolidation_interval_hours` hours. Default: `false`.
|
|
1678
|
+
*/
|
|
1679
|
+
consolidation_enabled?: boolean;
|
|
1680
|
+
/**
|
|
1681
|
+
* DBSCAN epsilon — cosine-similarity threshold to consider two memories
|
|
1682
|
+
* duplicates (default: `0.92`; higher = only merge very close neighbours).
|
|
1683
|
+
*/
|
|
1684
|
+
consolidation_threshold?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* How often (in hours) the background consolidation job runs for this
|
|
1687
|
+
* namespace (default: `24`).
|
|
1688
|
+
*/
|
|
1689
|
+
consolidation_interval_hours?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* **Read-only.** Lifetime count of memories merged by the consolidation
|
|
1692
|
+
* engine. The server manages this field; any value you send is ignored.
|
|
1693
|
+
*/
|
|
1694
|
+
consolidated_count?: number;
|
|
1670
1695
|
}
|
|
1671
1696
|
|
|
1672
1697
|
/**
|
|
@@ -2198,6 +2223,8 @@ declare class DakeraClient {
|
|
|
2198
2223
|
* @param options.include_associated - COG-2: traverse KG depth-1 and include
|
|
2199
2224
|
* associatively linked memories in `associated_memories` (default: false)
|
|
2200
2225
|
* @param options.associated_memories_cap - COG-2: max associated memories (default: 10, max: 10)
|
|
2226
|
+
* @param options.since - CE-7: only recall memories created at or after this ISO-8601 timestamp
|
|
2227
|
+
* @param options.until - CE-7: only recall memories created at or before this ISO-8601 timestamp
|
|
2201
2228
|
* @returns RecallResponse with `memories` and optionally `associated_memories`
|
|
2202
2229
|
*/
|
|
2203
2230
|
recall(agentId: string, query: string, options?: {
|
|
@@ -2206,6 +2233,8 @@ declare class DakeraClient {
|
|
|
2206
2233
|
min_importance?: number;
|
|
2207
2234
|
include_associated?: boolean;
|
|
2208
2235
|
associated_memories_cap?: number;
|
|
2236
|
+
since?: string;
|
|
2237
|
+
until?: string;
|
|
2209
2238
|
}): Promise<RecallResponse>;
|
|
2210
2239
|
/** Get a specific memory */
|
|
2211
2240
|
getMemory(agentId: string, memoryId: string): Promise<Memory>;
|
package/dist/index.js
CHANGED
|
@@ -1078,6 +1078,8 @@ var DakeraClient = class {
|
|
|
1078
1078
|
* @param options.include_associated - COG-2: traverse KG depth-1 and include
|
|
1079
1079
|
* associatively linked memories in `associated_memories` (default: false)
|
|
1080
1080
|
* @param options.associated_memories_cap - COG-2: max associated memories (default: 10, max: 10)
|
|
1081
|
+
* @param options.since - CE-7: only recall memories created at or after this ISO-8601 timestamp
|
|
1082
|
+
* @param options.until - CE-7: only recall memories created at or before this ISO-8601 timestamp
|
|
1081
1083
|
* @returns RecallResponse with `memories` and optionally `associated_memories`
|
|
1082
1084
|
*/
|
|
1083
1085
|
async recall(agentId2, query, options) {
|
|
@@ -1087,6 +1089,8 @@ var DakeraClient = class {
|
|
|
1087
1089
|
if (options?.min_importance !== void 0) body["min_importance"] = options.min_importance;
|
|
1088
1090
|
if (options?.include_associated) body["include_associated"] = true;
|
|
1089
1091
|
if (options?.associated_memories_cap !== void 0) body["associated_memories_cap"] = options.associated_memories_cap;
|
|
1092
|
+
if (options?.since !== void 0) body["since"] = options.since;
|
|
1093
|
+
if (options?.until !== void 0) body["until"] = options.until;
|
|
1090
1094
|
return this.request("POST", `/v1/agents/${agentId2}/memories/recall`, body);
|
|
1091
1095
|
}
|
|
1092
1096
|
/** Get a specific memory */
|
package/dist/index.mjs
CHANGED
|
@@ -1038,6 +1038,8 @@ var DakeraClient = class {
|
|
|
1038
1038
|
* @param options.include_associated - COG-2: traverse KG depth-1 and include
|
|
1039
1039
|
* associatively linked memories in `associated_memories` (default: false)
|
|
1040
1040
|
* @param options.associated_memories_cap - COG-2: max associated memories (default: 10, max: 10)
|
|
1041
|
+
* @param options.since - CE-7: only recall memories created at or after this ISO-8601 timestamp
|
|
1042
|
+
* @param options.until - CE-7: only recall memories created at or before this ISO-8601 timestamp
|
|
1041
1043
|
* @returns RecallResponse with `memories` and optionally `associated_memories`
|
|
1042
1044
|
*/
|
|
1043
1045
|
async recall(agentId2, query, options) {
|
|
@@ -1047,6 +1049,8 @@ var DakeraClient = class {
|
|
|
1047
1049
|
if (options?.min_importance !== void 0) body["min_importance"] = options.min_importance;
|
|
1048
1050
|
if (options?.include_associated) body["include_associated"] = true;
|
|
1049
1051
|
if (options?.associated_memories_cap !== void 0) body["associated_memories_cap"] = options.associated_memories_cap;
|
|
1052
|
+
if (options?.since !== void 0) body["since"] = options.since;
|
|
1053
|
+
if (options?.until !== void 0) body["until"] = options.until;
|
|
1050
1054
|
return this.request("POST", `/v1/agents/${agentId2}/memories/recall`, body);
|
|
1051
1055
|
}
|
|
1052
1056
|
/** Get a specific memory */
|