@aigne/core 0.4.197 → 0.4.199
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/lib/cjs/llm-agent.js +1 -1
- package/lib/cjs/pipeline-agent.js +28 -20
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/llm-agent.js +1 -1
- package/lib/esm/pipeline-agent.js +28 -20
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/memory.d.ts +3 -5
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/types/memory.d.ts
CHANGED
|
@@ -112,11 +112,9 @@ export type MemoryActions<T> = {
|
|
|
112
112
|
} | {
|
|
113
113
|
action: 'delete';
|
|
114
114
|
inputs: {
|
|
115
|
-
|
|
116
|
-
};
|
|
117
|
-
outputs: {
|
|
118
|
-
result: MemoryItem<T> | null;
|
|
115
|
+
filter: string | string[] | Record<string, any>;
|
|
119
116
|
};
|
|
117
|
+
outputs: {};
|
|
120
118
|
} | {
|
|
121
119
|
action: 'reset';
|
|
122
120
|
inputs: {};
|
|
@@ -168,7 +166,7 @@ export declare abstract class Memory<T, C = undefined> extends Runnable<MemoryAc
|
|
|
168
166
|
}>['outputs']>;
|
|
169
167
|
abstract delete(memoryId: Extract<MemoryActions<T>, {
|
|
170
168
|
action: 'delete';
|
|
171
|
-
}>['inputs']['
|
|
169
|
+
}>['inputs']['filter']): Promise<Extract<MemoryActions<T>, {
|
|
172
170
|
action: 'delete';
|
|
173
171
|
}>['outputs']>;
|
|
174
172
|
abstract reset(): Promise<void>;
|