@vectorx/agent-runtime 0.1.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/lib/agent-runner.js +94 -0
- package/lib/agent-types.js +2 -0
- package/lib/agent.js +577 -0
- package/lib/codes.js +9 -0
- package/lib/index.js +23 -0
- package/lib/schema/conversation.schema.js +35 -0
- package/lib/schema/index.js +20 -0
- package/lib/schema/knowledge.schema.js +13 -0
- package/lib/schema/memory.schema.js +15 -0
- package/lib/schema/message.schema.js +62 -0
- package/lib/sse-sender.js +33 -0
- package/lib/types.js +2 -0
- package/lib/utils/agent-helper.js +92 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/integration-response.js +17 -0
- package/package.json +45 -0
- package/types/agent-runner.d.ts +12 -0
- package/types/agent-types.d.ts +81 -0
- package/types/agent.d.ts +37 -0
- package/types/codes.d.ts +6 -0
- package/types/index.d.ts +6 -0
- package/types/schema/conversation.schema.d.ts +126 -0
- package/types/schema/index.d.ts +4 -0
- package/types/schema/knowledge.schema.d.ts +37 -0
- package/types/schema/memory.schema.d.ts +35 -0
- package/types/schema/message.schema.d.ts +903 -0
- package/types/sse-sender.d.ts +32 -0
- package/types/types.d.ts +71 -0
- package/types/utils/agent-helper.d.ts +8 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/integration-response.d.ts +20 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const knowledgeSearchInputSchema: z.ZodObject<{
|
|
3
|
+
query: z.ZodString;
|
|
4
|
+
knowledge_base: z.ZodObject<{
|
|
5
|
+
knowledge_base_id: z.ZodString;
|
|
6
|
+
search_mode: z.ZodOptional<z.ZodString>;
|
|
7
|
+
score_threshold: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
limit?: number;
|
|
11
|
+
knowledge_base_id?: string;
|
|
12
|
+
search_mode?: string;
|
|
13
|
+
score_threshold?: number;
|
|
14
|
+
}, {
|
|
15
|
+
limit?: number;
|
|
16
|
+
knowledge_base_id?: string;
|
|
17
|
+
search_mode?: string;
|
|
18
|
+
score_threshold?: number;
|
|
19
|
+
}>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
query?: string;
|
|
22
|
+
knowledge_base?: {
|
|
23
|
+
limit?: number;
|
|
24
|
+
knowledge_base_id?: string;
|
|
25
|
+
search_mode?: string;
|
|
26
|
+
score_threshold?: number;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
query?: string;
|
|
30
|
+
knowledge_base?: {
|
|
31
|
+
limit?: number;
|
|
32
|
+
knowledge_base_id?: string;
|
|
33
|
+
search_mode?: string;
|
|
34
|
+
score_threshold?: number;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
export type KnowledgeSearchInput = z.infer<typeof knowledgeSearchInputSchema>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const getLoneMemoryInputSchema: z.ZodObject<{
|
|
3
|
+
userId: z.ZodString;
|
|
4
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
startTime: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type?: string;
|
|
11
|
+
startTime?: number;
|
|
12
|
+
endTime?: number;
|
|
13
|
+
}, {
|
|
14
|
+
type?: string;
|
|
15
|
+
startTime?: number;
|
|
16
|
+
endTime?: number;
|
|
17
|
+
}>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
filter?: {
|
|
20
|
+
type?: string;
|
|
21
|
+
startTime?: number;
|
|
22
|
+
endTime?: number;
|
|
23
|
+
};
|
|
24
|
+
userId?: string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
}, {
|
|
27
|
+
filter?: {
|
|
28
|
+
type?: string;
|
|
29
|
+
startTime?: number;
|
|
30
|
+
endTime?: number;
|
|
31
|
+
};
|
|
32
|
+
userId?: string;
|
|
33
|
+
limit?: number;
|
|
34
|
+
}>;
|
|
35
|
+
export type GetLoneMemoryInput = z.infer<typeof getLoneMemoryInputSchema>;
|