@deepagents/agent 0.23.0 → 0.25.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.
@@ -303,8 +303,8 @@ export declare const memoryLookup: import("ai").Tool<{
303
303
  query: string;
304
304
  limit: number;
305
305
  type?: "episodic" | "semantic" | "procedural" | undefined;
306
- minImportance?: number | undefined;
307
306
  tags?: string[] | undefined;
307
+ minImportance?: number | undefined;
308
308
  }, {
309
309
  count: number;
310
310
  memories: {
@@ -364,12 +364,12 @@ export declare const memoryExplain: import("ai").Tool<{
364
364
  * Tool: Write a new memory
365
365
  */
366
366
  export declare const memoryWrite: import("ai").Tool<{
367
- content: string;
368
367
  type: "episodic" | "semantic" | "procedural";
369
- importance: number;
368
+ content: string;
370
369
  tags: string[];
371
- context?: Record<any, any> | undefined;
370
+ importance: number;
372
371
  relationships?: string[] | undefined;
372
+ context?: Record<any, any> | undefined;
373
373
  }, {
374
374
  success: boolean;
375
375
  id: string;
@@ -398,10 +398,10 @@ export declare const memoryCorrect: import("ai").Tool<{
398
398
  id: string;
399
399
  updates: {
400
400
  content?: string | undefined;
401
- importance?: number | undefined;
401
+ relationships?: string[] | undefined;
402
402
  tags?: string[] | undefined;
403
+ importance?: number | undefined;
403
404
  context?: Record<any, any> | undefined;
404
- relationships?: string[] | undefined;
405
405
  };
406
406
  correctionNote?: string | undefined;
407
407
  }, {
@@ -422,7 +422,7 @@ export declare const memoryCorrect: import("ai").Tool<{
422
422
  /**
423
423
  * Tool: Get memory statistics
424
424
  */
425
- export declare const memoryStats: import("ai").Tool<Record<string, never>, {
425
+ export declare const memoryStats: import("ai").Tool<{}, {
426
426
  total: number;
427
427
  byType: Record<string, number>;
428
428
  averageImportance: string;
@@ -444,8 +444,8 @@ export declare const memoryTools: {
444
444
  query: string;
445
445
  limit: number;
446
446
  type?: "episodic" | "semantic" | "procedural" | undefined;
447
- minImportance?: number | undefined;
448
447
  tags?: string[] | undefined;
448
+ minImportance?: number | undefined;
449
449
  }, {
450
450
  count: number;
451
451
  memories: {
@@ -499,12 +499,12 @@ export declare const memoryTools: {
499
499
  message?: undefined;
500
500
  }>;
501
501
  memoryWrite: import("ai").Tool<{
502
- content: string;
503
502
  type: "episodic" | "semantic" | "procedural";
504
- importance: number;
503
+ content: string;
505
504
  tags: string[];
506
- context?: Record<any, any> | undefined;
505
+ importance: number;
507
506
  relationships?: string[] | undefined;
507
+ context?: Record<any, any> | undefined;
508
508
  }, {
509
509
  success: boolean;
510
510
  id: string;
@@ -527,10 +527,10 @@ export declare const memoryTools: {
527
527
  id: string;
528
528
  updates: {
529
529
  content?: string | undefined;
530
- importance?: number | undefined;
530
+ relationships?: string[] | undefined;
531
531
  tags?: string[] | undefined;
532
+ importance?: number | undefined;
532
533
  context?: Record<any, any> | undefined;
533
- relationships?: string[] | undefined;
534
534
  };
535
535
  correctionNote?: string | undefined;
536
536
  }, {
@@ -548,7 +548,7 @@ export declare const memoryTools: {
548
548
  lastAccessed: string;
549
549
  };
550
550
  }>;
551
- memoryStats: import("ai").Tool<Record<string, never>, {
551
+ memoryStats: import("ai").Tool<{}, {
552
552
  total: number;
553
553
  byType: Record<string, number>;
554
554
  averageImportance: string;
@@ -573,8 +573,8 @@ declare const _default: {
573
573
  query: string;
574
574
  limit: number;
575
575
  type?: "episodic" | "semantic" | "procedural" | undefined;
576
- minImportance?: number | undefined;
577
576
  tags?: string[] | undefined;
577
+ minImportance?: number | undefined;
578
578
  }, {
579
579
  count: number;
580
580
  memories: {
@@ -628,12 +628,12 @@ declare const _default: {
628
628
  message?: undefined;
629
629
  }>;
630
630
  memoryWrite: import("ai").Tool<{
631
- content: string;
632
631
  type: "episodic" | "semantic" | "procedural";
633
- importance: number;
632
+ content: string;
634
633
  tags: string[];
635
- context?: Record<any, any> | undefined;
634
+ importance: number;
636
635
  relationships?: string[] | undefined;
636
+ context?: Record<any, any> | undefined;
637
637
  }, {
638
638
  success: boolean;
639
639
  id: string;
@@ -656,10 +656,10 @@ declare const _default: {
656
656
  id: string;
657
657
  updates: {
658
658
  content?: string | undefined;
659
- importance?: number | undefined;
659
+ relationships?: string[] | undefined;
660
660
  tags?: string[] | undefined;
661
+ importance?: number | undefined;
661
662
  context?: Record<any, any> | undefined;
662
- relationships?: string[] | undefined;
663
663
  };
664
664
  correctionNote?: string | undefined;
665
665
  }, {
@@ -677,7 +677,7 @@ declare const _default: {
677
677
  lastAccessed: string;
678
678
  };
679
679
  }>;
680
- memoryStats: import("ai").Tool<Record<string, never>, {
680
+ memoryStats: import("ai").Tool<{}, {
681
681
  total: number;
682
682
  byType: Record<string, number>;
683
683
  averageImportance: string;
@@ -2,32 +2,94 @@ import { z } from 'zod';
2
2
  declare const PlanningResponseSchema: z.ZodObject<{
3
3
  reasoning: z.ZodString;
4
4
  plan: z.ZodObject<{
5
- steps: z.ZodArray<z.ZodString>;
6
- estimated_complexity: z.ZodEnum<{
7
- low: "low";
8
- medium: "medium";
9
- high: "high";
10
- }>;
11
- }, z.core.$strip>;
12
- }, z.core.$strip>;
5
+ steps: z.ZodArray<z.ZodString, "many">;
6
+ estimated_complexity: z.ZodEnum<["low", "medium", "high"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ steps: string[];
9
+ estimated_complexity: "low" | "medium" | "high";
10
+ }, {
11
+ steps: string[];
12
+ estimated_complexity: "low" | "medium" | "high";
13
+ }>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ reasoning: string;
16
+ plan: {
17
+ steps: string[];
18
+ estimated_complexity: "low" | "medium" | "high";
19
+ };
20
+ }, {
21
+ reasoning: string;
22
+ plan: {
23
+ steps: string[];
24
+ estimated_complexity: "low" | "medium" | "high";
25
+ };
26
+ }>;
13
27
  declare const ExecutionResultSchema: z.ZodObject<{
14
28
  reasoning: z.ZodString;
15
29
  action_taken: z.ZodString;
16
30
  result: z.ZodString;
17
31
  success: z.ZodBoolean;
18
- }, z.core.$strip>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ reasoning: string;
34
+ success: boolean;
35
+ action_taken: string;
36
+ result: string;
37
+ }, {
38
+ reasoning: string;
39
+ success: boolean;
40
+ action_taken: string;
41
+ result: string;
42
+ }>;
19
43
  declare const ReplanningDecisionSchema: z.ZodObject<{
20
44
  reasoning: z.ZodString;
21
- decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
+ decision: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
46
  type: z.ZodLiteral<"continue">;
23
- updated_plan: z.ZodArray<z.ZodString>;
47
+ updated_plan: z.ZodArray<z.ZodString, "many">;
24
48
  notes: z.ZodOptional<z.ZodString>;
25
- }, z.core.$strip>, z.ZodObject<{
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "continue";
51
+ updated_plan: string[];
52
+ notes?: string | undefined;
53
+ }, {
54
+ type: "continue";
55
+ updated_plan: string[];
56
+ notes?: string | undefined;
57
+ }>, z.ZodObject<{
26
58
  type: z.ZodLiteral<"complete">;
27
59
  final_answer: z.ZodString;
28
60
  summary: z.ZodString;
29
- }, z.core.$strip>], "type">;
30
- }, z.core.$strip>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ type: "complete";
63
+ summary: string;
64
+ final_answer: string;
65
+ }, {
66
+ type: "complete";
67
+ summary: string;
68
+ final_answer: string;
69
+ }>]>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ reasoning: string;
72
+ decision: {
73
+ type: "continue";
74
+ updated_plan: string[];
75
+ notes?: string | undefined;
76
+ } | {
77
+ type: "complete";
78
+ summary: string;
79
+ final_answer: string;
80
+ };
81
+ }, {
82
+ reasoning: string;
83
+ decision: {
84
+ type: "continue";
85
+ updated_plan: string[];
86
+ notes?: string | undefined;
87
+ } | {
88
+ type: "complete";
89
+ summary: string;
90
+ final_answer: string;
91
+ };
92
+ }>;
31
93
  export type PlanningResponse = z.infer<typeof PlanningResponseSchema>;
32
94
  export type ExecutionResult = z.infer<typeof ExecutionResultSchema>;
33
95
  export type ReplanningDecision = z.infer<typeof ReplanningDecisionSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"plan_and_act.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_act/plan_and_act.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,QAAA,MAAM,sBAAsB;;;;;;;;;;iBAY1B,CAAC;AAGH,QAAA,MAAM,qBAAqB;;;;;iBASzB,CAAC;AAGH,QAAA,MAAM,wBAAwB;;;;;;;;;;;iBAuB5B,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAG1E,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gBAAgB,EAAE,KAAK,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,eAAe,CAAC;QAC3B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC,CAAC;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgFD;;;GAGG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,MAAM,EACb,aAAa,SAAK,GACjB,OAAO,CAAC;IACT,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAkJD"}
1
+ {"version":3,"file":"plan_and_act.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_act/plan_and_act.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAY1B,CAAC;AAGH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;EASzB,CAAC;AAGH,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB5B,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAG1E,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gBAAgB,EAAE,KAAK,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,eAAe,CAAC;QAC3B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC,CAAC;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgFD;;;GAGG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,MAAM,EACb,aAAa,SAAK,GACjB,OAAO,CAAC;IACT,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAkJD"}
@@ -1,26 +1,58 @@
1
1
  import z from 'zod';
2
- declare const ToolNameSchema: z.ZodEnum<{
3
- images: "images";
4
- web: "web";
5
- news: "news";
6
- }>;
2
+ declare const ToolNameSchema: z.ZodEnum<["web", "news", "images"]>;
7
3
  export declare const RewooPlanSchema: z.ZodObject<{
8
4
  statements: z.ZodArray<z.ZodObject<{
9
5
  id: z.ZodString;
10
6
  content: z.ZodString;
11
- }, z.core.$strip>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ content: string;
10
+ }, {
11
+ id: string;
12
+ content: string;
13
+ }>, "many">;
12
14
  tool_calls: z.ZodArray<z.ZodObject<{
13
15
  id: z.ZodString;
14
- tool: z.ZodEnum<{
15
- images: "images";
16
- web: "web";
17
- news: "news";
18
- }>;
16
+ tool: z.ZodEnum<["web", "news", "images"]>;
19
17
  input: z.ZodString;
20
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString>>;
21
- }, z.core.$strip>>;
18
+ depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ input: string;
21
+ id: string;
22
+ tool: "images" | "web" | "news";
23
+ depends_on: string[];
24
+ }, {
25
+ input: string;
26
+ id: string;
27
+ tool: "images" | "web" | "news";
28
+ depends_on?: string[] | undefined;
29
+ }>, "many">;
22
30
  notes: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ statements: {
33
+ id: string;
34
+ content: string;
35
+ }[];
36
+ tool_calls: {
37
+ input: string;
38
+ id: string;
39
+ tool: "images" | "web" | "news";
40
+ depends_on: string[];
41
+ }[];
42
+ notes?: string | undefined;
43
+ }, {
44
+ statements: {
45
+ id: string;
46
+ content: string;
47
+ }[];
48
+ tool_calls: {
49
+ input: string;
50
+ id: string;
51
+ tool: "images" | "web" | "news";
52
+ depends_on?: string[] | undefined;
53
+ }[];
54
+ notes?: string | undefined;
55
+ }>;
24
56
  export type RewooPlan = z.infer<typeof RewooPlanSchema>;
25
57
  export type Evidence = {
26
58
  id: string;
@@ -35,10 +67,10 @@ export declare const rewooPlanner: import("../../agent.ts").Agent<{
35
67
  content: string;
36
68
  }[];
37
69
  tool_calls: {
70
+ input: string;
38
71
  id: string;
39
72
  tool: "images" | "web" | "news";
40
- input: string;
41
- depends_on: string[];
73
+ depends_on?: string[] | undefined;
42
74
  }[];
43
75
  notes?: string | undefined;
44
76
  }, import("../../agent.ts").ContextVariables, import("../../agent.ts").ContextVariables>;
@@ -50,9 +82,9 @@ export declare function runRewoo(query: string): Promise<{
50
82
  content: string;
51
83
  }[];
52
84
  tool_calls: {
85
+ input: string;
53
86
  id: string;
54
87
  tool: "images" | "web" | "news";
55
- input: string;
56
88
  depends_on: string[];
57
89
  }[];
58
90
  notes?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"rewoo.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/rewoo/rewoo.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,QAAA,MAAM,cAAc;;;;EAAoC,CAAC;AAiBzD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;iBAa1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AASF,eAAO,MAAM,YAAY;;;;;;;;;;;;wFAoBvB,CAAC;AA+BH,eAAO,MAAM,WAAW,+HAgBtB,CAAC;AAMH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;GAoC3C"}
1
+ {"version":3,"file":"rewoo.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/rewoo/rewoo.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,QAAA,MAAM,cAAc,sCAAoC,CAAC;AAiBzD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AASF,eAAO,MAAM,YAAY;;;;;;;;;;;;wFAoBvB,CAAC;AA+BH,eAAO,MAAM,WAAW,+HAgBtB,CAAC;AAMH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;GAoC3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepagents/agent",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "@ai-sdk/groq": "^3.0.24",
36
36
  "@ai-sdk/openai": "^3.0.29",
37
37
  "@ai-sdk/openai-compatible": "^2.0.30",
38
- "@deepagents/retrieval": "0.23.0",
38
+ "@deepagents/retrieval": "0.25.0",
39
39
  "ai": "^6.0.90",
40
40
  "chalk": "^5.6.2",
41
41
  "conf": "^15.0.2",