koishi-plugin-chatluna-long-memory 1.3.7 → 1.3.8
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/plugins/tool.d.ts +8 -8
- package/package.json +2 -2
package/lib/plugins/tool.d.ts
CHANGED
|
@@ -35,27 +35,27 @@ export declare class MemoryAddTool extends StructuredTool {
|
|
|
35
35
|
type: z.ZodNativeEnum<typeof MemoryType>;
|
|
36
36
|
importance: z.ZodNumber;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
content?: string;
|
|
39
38
|
type?: MemoryType;
|
|
39
|
+
content?: string;
|
|
40
40
|
importance?: number;
|
|
41
41
|
}, {
|
|
42
|
-
content?: string;
|
|
43
42
|
type?: MemoryType;
|
|
43
|
+
content?: string;
|
|
44
44
|
importance?: number;
|
|
45
45
|
}>, "many">;
|
|
46
46
|
layer: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"preset">, z.ZodLiteral<"guild">, z.ZodLiteral<"global">]>, "many">;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
layer?: ("user" | "preset" | "guild" | "global")[];
|
|
49
49
|
memories?: {
|
|
50
|
-
content?: string;
|
|
51
50
|
type?: MemoryType;
|
|
51
|
+
content?: string;
|
|
52
52
|
importance?: number;
|
|
53
53
|
}[];
|
|
54
54
|
}, {
|
|
55
55
|
layer?: ("user" | "preset" | "guild" | "global")[];
|
|
56
56
|
memories?: {
|
|
57
|
-
content?: string;
|
|
58
57
|
type?: MemoryType;
|
|
58
|
+
content?: string;
|
|
59
59
|
importance?: number;
|
|
60
60
|
}[];
|
|
61
61
|
}>;
|
|
@@ -94,12 +94,12 @@ export declare class MemoryUpdateTool extends StructuredTool {
|
|
|
94
94
|
type: z.ZodNativeEnum<typeof MemoryType>;
|
|
95
95
|
importance: z.ZodNumber;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
content?: string;
|
|
98
97
|
type?: MemoryType;
|
|
98
|
+
content?: string;
|
|
99
99
|
importance?: number;
|
|
100
100
|
}, {
|
|
101
|
-
content?: string;
|
|
102
101
|
type?: MemoryType;
|
|
102
|
+
content?: string;
|
|
103
103
|
importance?: number;
|
|
104
104
|
}>, "many">;
|
|
105
105
|
layer: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"preset">, z.ZodLiteral<"guild">, z.ZodLiteral<"global">]>, "many">;
|
|
@@ -107,16 +107,16 @@ export declare class MemoryUpdateTool extends StructuredTool {
|
|
|
107
107
|
layer?: ("user" | "preset" | "guild" | "global")[];
|
|
108
108
|
memoryIds?: string[];
|
|
109
109
|
newMemories?: {
|
|
110
|
-
content?: string;
|
|
111
110
|
type?: MemoryType;
|
|
111
|
+
content?: string;
|
|
112
112
|
importance?: number;
|
|
113
113
|
}[];
|
|
114
114
|
}, {
|
|
115
115
|
layer?: ("user" | "preset" | "guild" | "global")[];
|
|
116
116
|
memoryIds?: string[];
|
|
117
117
|
newMemories?: {
|
|
118
|
-
content?: string;
|
|
119
118
|
type?: MemoryType;
|
|
119
|
+
content?: string;
|
|
120
120
|
importance?: number;
|
|
121
121
|
}[];
|
|
122
122
|
}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-chatluna-long-memory",
|
|
3
3
|
"description": "long memory for chatluna",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.8",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"koishi": "^4.18.9",
|
|
65
|
-
"koishi-plugin-chatluna": "^1.4.0-alpha.
|
|
65
|
+
"koishi-plugin-chatluna": "^1.4.0-alpha.5"
|
|
66
66
|
},
|
|
67
67
|
"resolutions": {
|
|
68
68
|
"@langchain/core": "^0.3.80",
|