@voltagent/core 0.1.22 → 0.1.23

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.js CHANGED
@@ -776,77 +776,76 @@ var updateSinglePackage = /* @__PURE__ */ __name((packageName, packagePath) => _
776
776
  }), "updateSinglePackage");
777
777
 
778
778
  // src/server/api.routes.ts
779
- var import_zod = require("zod");
780
779
  var import_zod_openapi = require("@hono/zod-openapi");
781
- var ParamsSchema = import_zod.z.object({
782
- id: import_zod.z.string().openapi({
780
+ var ParamsSchema = import_zod_openapi.z.object({
781
+ id: import_zod_openapi.z.string().openapi({
783
782
  param: { name: "id", in: "path" },
784
783
  description: "The ID of the agent",
785
784
  example: "my-agent-123"
786
785
  })
787
786
  });
788
- var ErrorSchema = import_zod.z.object({
789
- success: import_zod.z.literal(false),
790
- error: import_zod.z.string().openapi({ description: "Error message" })
787
+ var ErrorSchema = import_zod_openapi.z.object({
788
+ success: import_zod_openapi.z.literal(false),
789
+ error: import_zod_openapi.z.string().openapi({ description: "Error message" })
791
790
  });
792
- var SubAgentResponseSchema = import_zod.z.object({
793
- id: import_zod.z.string(),
794
- name: import_zod.z.string(),
795
- description: import_zod.z.string(),
796
- status: import_zod.z.string().openapi({ description: "Current status of the sub-agent" }),
791
+ var SubAgentResponseSchema = import_zod_openapi.z.object({
792
+ id: import_zod_openapi.z.string(),
793
+ name: import_zod_openapi.z.string(),
794
+ description: import_zod_openapi.z.string(),
795
+ status: import_zod_openapi.z.string().openapi({ description: "Current status of the sub-agent" }),
797
796
  // Keeping string for now
798
- model: import_zod.z.string(),
799
- tools: import_zod.z.array(import_zod.z.any()).optional(),
800
- memory: import_zod.z.any().optional()
797
+ model: import_zod_openapi.z.string(),
798
+ tools: import_zod_openapi.z.array(import_zod_openapi.z.any()).optional(),
799
+ memory: import_zod_openapi.z.any().optional()
801
800
  }).passthrough();
802
- var AgentResponseSchema = import_zod.z.object({
803
- id: import_zod.z.string(),
804
- name: import_zod.z.string(),
805
- description: import_zod.z.string(),
806
- status: import_zod.z.string().openapi({ description: "Current status of the agent" }),
801
+ var AgentResponseSchema = import_zod_openapi.z.object({
802
+ id: import_zod_openapi.z.string(),
803
+ name: import_zod_openapi.z.string(),
804
+ description: import_zod_openapi.z.string(),
805
+ status: import_zod_openapi.z.string().openapi({ description: "Current status of the agent" }),
807
806
  // Reverted to z.string()
808
- model: import_zod.z.string(),
809
- tools: import_zod.z.array(import_zod.z.any()),
807
+ model: import_zod_openapi.z.string(),
808
+ tools: import_zod_openapi.z.array(import_zod_openapi.z.any()),
810
809
  // Simplified tool representation
811
- subAgents: import_zod.z.array(SubAgentResponseSchema).optional().openapi({ description: "List of sub-agents" }),
810
+ subAgents: import_zod_openapi.z.array(SubAgentResponseSchema).optional().openapi({ description: "List of sub-agents" }),
812
811
  // Use SubAgent schema
813
- memory: import_zod.z.any().optional(),
812
+ memory: import_zod_openapi.z.any().optional(),
814
813
  // Simplified memory representation
815
- isTelemetryEnabled: import_zod.z.boolean().openapi({ description: "Indicates if telemetry is configured for the agent" })
814
+ isTelemetryEnabled: import_zod_openapi.z.boolean().openapi({ description: "Indicates if telemetry is configured for the agent" })
816
815
  // Add other fields from getFullState if necessary and want them documented
817
816
  }).passthrough();
818
- var GenerateOptionsSchema = import_zod.z.object({
819
- userId: import_zod.z.string().optional().openapi({ description: "Optional user ID for context tracking" }),
820
- conversationId: import_zod.z.string().optional().openapi({
817
+ var GenerateOptionsSchema = import_zod_openapi.z.object({
818
+ userId: import_zod_openapi.z.string().optional().openapi({ description: "Optional user ID for context tracking" }),
819
+ conversationId: import_zod_openapi.z.string().optional().openapi({
821
820
  description: "Optional conversation ID for context tracking"
822
821
  }),
823
- contextLimit: import_zod.z.number().int().positive().optional().default(10).openapi({
822
+ contextLimit: import_zod_openapi.z.number().int().positive().optional().default(10).openapi({
824
823
  description: "Optional limit for conversation history context"
825
824
  }),
826
- temperature: import_zod.z.number().min(0).max(1).optional().default(0.7).openapi({ description: "Controls randomness (0-1)" }),
827
- maxTokens: import_zod.z.number().int().positive().optional().default(4e3).openapi({ description: "Maximum tokens to generate" }),
828
- topP: import_zod.z.number().min(0).max(1).optional().default(1).openapi({
825
+ temperature: import_zod_openapi.z.number().min(0).max(1).optional().default(0.7).openapi({ description: "Controls randomness (0-1)" }),
826
+ maxTokens: import_zod_openapi.z.number().int().positive().optional().default(4e3).openapi({ description: "Maximum tokens to generate" }),
827
+ topP: import_zod_openapi.z.number().min(0).max(1).optional().default(1).openapi({
829
828
  description: "Controls diversity via nucleus sampling (0-1)"
830
829
  }),
831
- frequencyPenalty: import_zod.z.number().min(0).max(2).optional().default(0).openapi({ description: "Penalizes repeated tokens (0-2)" }),
832
- presencePenalty: import_zod.z.number().min(0).max(2).optional().default(0).openapi({ description: "Penalizes tokens based on presence (0-2)" }),
833
- seed: import_zod.z.number().int().optional().openapi({ description: "Optional seed for reproducible results" }),
834
- stopSequences: import_zod.z.array(import_zod.z.string()).optional().openapi({ description: "Stop sequences to end generation" }),
835
- extraOptions: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().openapi({ description: "Provider-specific options" })
830
+ frequencyPenalty: import_zod_openapi.z.number().min(0).max(2).optional().default(0).openapi({ description: "Penalizes repeated tokens (0-2)" }),
831
+ presencePenalty: import_zod_openapi.z.number().min(0).max(2).optional().default(0).openapi({ description: "Penalizes tokens based on presence (0-2)" }),
832
+ seed: import_zod_openapi.z.number().int().optional().openapi({ description: "Optional seed for reproducible results" }),
833
+ stopSequences: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().openapi({ description: "Stop sequences to end generation" }),
834
+ extraOptions: import_zod_openapi.z.record(import_zod_openapi.z.string(), import_zod_openapi.z.unknown()).optional().openapi({ description: "Provider-specific options" })
836
835
  // Add other relevant options from PublicGenerateOptions if known/needed for API exposure
837
836
  }).passthrough();
838
- var ContentPartSchema = import_zod.z.union([
839
- import_zod.z.object({
837
+ var ContentPartSchema = import_zod_openapi.z.union([
838
+ import_zod_openapi.z.object({
840
839
  // Text part
841
- type: import_zod.z.literal("text"),
842
- text: import_zod.z.string()
840
+ type: import_zod_openapi.z.literal("text"),
841
+ text: import_zod_openapi.z.string()
843
842
  }).openapi({ example: { type: "text", text: "Hello there!" } }),
844
- import_zod.z.object({
843
+ import_zod_openapi.z.object({
845
844
  // Image part
846
- type: import_zod.z.literal("image"),
847
- image: import_zod.z.string().openapi({ description: "Base64 encoded image data or a URL" }),
848
- mimeType: import_zod.z.string().optional().openapi({ example: "image/jpeg" }),
849
- alt: import_zod.z.string().optional().openapi({ description: "Alternative text for the image" })
845
+ type: import_zod_openapi.z.literal("image"),
846
+ image: import_zod_openapi.z.string().openapi({ description: "Base64 encoded image data or a URL" }),
847
+ mimeType: import_zod_openapi.z.string().optional().openapi({ example: "image/jpeg" }),
848
+ alt: import_zod_openapi.z.string().optional().openapi({ description: "Alternative text for the image" })
850
849
  }).openapi({
851
850
  example: {
852
851
  type: "image",
@@ -854,13 +853,13 @@ var ContentPartSchema = import_zod.z.union([
854
853
  mimeType: "image/png"
855
854
  }
856
855
  }),
857
- import_zod.z.object({
856
+ import_zod_openapi.z.object({
858
857
  // File part
859
- type: import_zod.z.literal("file"),
860
- data: import_zod.z.string().openapi({ description: "Base64 encoded file data" }),
861
- filename: import_zod.z.string().openapi({ example: "document.pdf" }),
862
- mimeType: import_zod.z.string().openapi({ example: "application/pdf" }),
863
- size: import_zod.z.number().optional().openapi({ description: "File size in bytes" })
858
+ type: import_zod_openapi.z.literal("file"),
859
+ data: import_zod_openapi.z.string().openapi({ description: "Base64 encoded file data" }),
860
+ filename: import_zod_openapi.z.string().openapi({ example: "document.pdf" }),
861
+ mimeType: import_zod_openapi.z.string().openapi({ example: "application/pdf" }),
862
+ size: import_zod_openapi.z.number().optional().openapi({ description: "File size in bytes" })
864
863
  }).openapi({
865
864
  example: {
866
865
  type: "file",
@@ -870,24 +869,24 @@ var ContentPartSchema = import_zod.z.union([
870
869
  }
871
870
  })
872
871
  ]);
873
- var MessageContentSchema = import_zod.z.union([
874
- import_zod.z.string().openapi({ description: "Plain text content" }),
875
- import_zod.z.array(ContentPartSchema).openapi({ description: "An array of content parts (text, image, file)." })
872
+ var MessageContentSchema = import_zod_openapi.z.union([
873
+ import_zod_openapi.z.string().openapi({ description: "Plain text content" }),
874
+ import_zod_openapi.z.array(ContentPartSchema).openapi({ description: "An array of content parts (text, image, file)." })
876
875
  ]);
877
- var MessageObjectSchema = import_zod.z.object({
878
- role: import_zod.z.enum(["system", "user", "assistant", "tool"]).openapi({
876
+ var MessageObjectSchema = import_zod_openapi.z.object({
877
+ role: import_zod_openapi.z.enum(["system", "user", "assistant", "tool"]).openapi({
879
878
  description: "Role of the sender (e.g., 'user', 'assistant')"
880
879
  }),
881
880
  content: MessageContentSchema
882
881
  // Use the reusable content schema
883
882
  }).openapi({ description: "A message object with role and content" });
884
- var TextRequestSchema = import_zod.z.object({
885
- input: import_zod.z.union([
886
- import_zod.z.string().openapi({
883
+ var TextRequestSchema = import_zod_openapi.z.object({
884
+ input: import_zod_openapi.z.union([
885
+ import_zod_openapi.z.string().openapi({
887
886
  description: "Input text for the agent",
888
887
  example: "Tell me a joke!"
889
888
  }),
890
- import_zod.z.array(MessageObjectSchema).openapi({
889
+ import_zod_openapi.z.array(MessageObjectSchema).openapi({
891
890
  description: "An array of message objects, representing the conversation history",
892
891
  example: [
893
892
  { role: "user", content: "What is the weather?" },
@@ -907,23 +906,23 @@ var TextRequestSchema = import_zod.z.object({
907
906
  }
908
907
  })
909
908
  }).openapi("TextGenerationRequest");
910
- var TextResponseSchema = import_zod.z.object({
911
- success: import_zod.z.literal(true),
912
- data: import_zod.z.string().openapi({ description: "Generated text response" })
909
+ var TextResponseSchema = import_zod_openapi.z.object({
910
+ success: import_zod_openapi.z.literal(true),
911
+ data: import_zod_openapi.z.string().openapi({ description: "Generated text response" })
913
912
  // Assuming simple text response for now
914
913
  });
915
- var StreamTextEventSchema = import_zod.z.object({
916
- text: import_zod.z.string().optional(),
917
- timestamp: import_zod.z.string().datetime().optional(),
918
- type: import_zod.z.enum(["text", "completion", "error"]).optional(),
919
- done: import_zod.z.boolean().optional(),
920
- error: import_zod.z.string().optional()
914
+ var StreamTextEventSchema = import_zod_openapi.z.object({
915
+ text: import_zod_openapi.z.string().optional(),
916
+ timestamp: import_zod_openapi.z.string().datetime().optional(),
917
+ type: import_zod_openapi.z.enum(["text", "completion", "error"]).optional(),
918
+ done: import_zod_openapi.z.boolean().optional(),
919
+ error: import_zod_openapi.z.string().optional()
921
920
  });
922
- var BasicJsonSchema = import_zod.z.object({
923
- type: import_zod.z.literal("object"),
924
- properties: import_zod.z.record(
925
- import_zod.z.object({
926
- type: import_zod.z.enum(["string", "number", "boolean", "object", "array", "null", "any"])
921
+ var BasicJsonSchema = import_zod_openapi.z.object({
922
+ type: import_zod_openapi.z.literal("object"),
923
+ properties: import_zod_openapi.z.record(
924
+ import_zod_openapi.z.object({
925
+ type: import_zod_openapi.z.enum(["string", "number", "boolean", "object", "array", "null", "any"])
927
926
  })
928
927
  ).optional().openapi({
929
928
  description: "A dictionary defining each property of the object and its type",
@@ -933,17 +932,17 @@ var BasicJsonSchema = import_zod.z.object({
933
932
  isActive: { type: "boolean" }
934
933
  }
935
934
  }),
936
- required: import_zod.z.array(import_zod.z.string()).optional().openapi({
935
+ required: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().openapi({
937
936
  description: "List of required property names in the object",
938
937
  example: ["id", "age"]
939
938
  })
940
939
  }).passthrough().openapi({
941
940
  description: "The Zod schema for the desired object output (passed as JSON)"
942
941
  });
943
- var ObjectRequestSchema = import_zod.z.object({
944
- input: import_zod.z.union([
945
- import_zod.z.string().openapi({ description: "Input text prompt" }),
946
- import_zod.z.array(MessageObjectSchema).openapi({ description: "Conversation history" })
942
+ var ObjectRequestSchema = import_zod_openapi.z.object({
943
+ input: import_zod_openapi.z.union([
944
+ import_zod_openapi.z.string().openapi({ description: "Input text prompt" }),
945
+ import_zod_openapi.z.array(MessageObjectSchema).openapi({ description: "Conversation history" })
947
946
  ]),
948
947
  schema: BasicJsonSchema,
949
948
  options: GenerateOptionsSchema.optional().openapi({
@@ -951,12 +950,12 @@ var ObjectRequestSchema = import_zod.z.object({
951
950
  example: { temperature: 0.2 }
952
951
  })
953
952
  }).openapi("ObjectGenerationRequest");
954
- var ObjectResponseSchema = import_zod.z.object({
955
- success: import_zod.z.literal(true),
956
- data: import_zod.z.object({}).passthrough().openapi({ description: "Generated object response" })
953
+ var ObjectResponseSchema = import_zod_openapi.z.object({
954
+ success: import_zod_openapi.z.literal(true),
955
+ data: import_zod_openapi.z.object({}).passthrough().openapi({ description: "Generated object response" })
957
956
  // Using passthrough object
958
957
  });
959
- var StreamObjectEventSchema = import_zod.z.any().openapi({
958
+ var StreamObjectEventSchema = import_zod_openapi.z.any().openapi({
960
959
  description: "Streamed object parts or the final object, format depends on agent implementation."
961
960
  });
962
961
  var getAgentsRoute = (0, import_zod_openapi.createRoute)({
@@ -966,9 +965,9 @@ var getAgentsRoute = (0, import_zod_openapi.createRoute)({
966
965
  200: {
967
966
  content: {
968
967
  "application/json": {
969
- schema: import_zod.z.object({
970
- success: import_zod.z.literal(true),
971
- data: import_zod.z.array(AgentResponseSchema).openapi({ description: "List of registered agents" })
968
+ schema: import_zod_openapi.z.object({
969
+ success: import_zod_openapi.z.literal(true),
970
+ data: import_zod_openapi.z.array(AgentResponseSchema).openapi({ description: "List of registered agents" })
972
971
  })
973
972
  }
974
973
  },
@@ -4901,7 +4900,7 @@ function createHooks(hooks = {}) {
4901
4900
  __name(createHooks, "createHooks");
4902
4901
 
4903
4902
  // src/agent/subagent/index.ts
4904
- var import_zod2 = require("zod");
4903
+ var import_zod = require("zod");
4905
4904
  var SubAgentManager = class {
4906
4905
  /**
4907
4906
  * Creates a new SubAgentManager instance
@@ -5128,10 +5127,10 @@ Context: ${JSON.stringify(context)}`
5128
5127
  id: "delegate_task",
5129
5128
  name: "delegate_task",
5130
5129
  description: "Delegate a task to one or more specialized agents",
5131
- parameters: import_zod2.z.object({
5132
- task: import_zod2.z.string().describe("The task to delegate"),
5133
- targetAgents: import_zod2.z.array(import_zod2.z.string()).describe("List of agent names to delegate the task to"),
5134
- context: import_zod2.z.record(import_zod2.z.unknown()).optional().describe("Additional context for the task")
5130
+ parameters: import_zod.z.object({
5131
+ task: import_zod.z.string().describe("The task to delegate"),
5132
+ targetAgents: import_zod.z.array(import_zod.z.string()).describe("List of agent names to delegate the task to"),
5133
+ context: import_zod.z.record(import_zod.z.unknown()).optional().describe("Additional context for the task")
5135
5134
  }),
5136
5135
  execute: (_0) => __async(this, [_0], function* ({ task, targetAgents, context = {} }) {
5137
5136
  try {
@@ -7141,48 +7140,48 @@ ${context}`;
7141
7140
  __name(Agent, "Agent");
7142
7141
 
7143
7142
  // src/tool/reasoning/tools.ts
7144
- var import_zod4 = require("zod");
7143
+ var import_zod3 = require("zod");
7145
7144
  var import_uuid4 = require("uuid");
7146
7145
 
7147
7146
  // src/tool/reasoning/types.ts
7148
- var import_zod3 = require("zod");
7147
+ var import_zod2 = require("zod");
7149
7148
  var NextAction = /* @__PURE__ */ ((NextAction2) => {
7150
7149
  NextAction2["CONTINUE"] = "continue";
7151
7150
  NextAction2["VALIDATE"] = "validate";
7152
7151
  NextAction2["FINAL_ANSWER"] = "final_answer";
7153
7152
  return NextAction2;
7154
7153
  })(NextAction || {});
7155
- var ReasoningStepSchema = import_zod3.z.object({
7156
- id: import_zod3.z.string().uuid(),
7154
+ var ReasoningStepSchema = import_zod2.z.object({
7155
+ id: import_zod2.z.string().uuid(),
7157
7156
  // Unique ID for the step
7158
- type: import_zod3.z.enum(["thought", "analysis"]),
7157
+ type: import_zod2.z.enum(["thought", "analysis"]),
7159
7158
  // Type of step
7160
- title: import_zod3.z.string(),
7159
+ title: import_zod2.z.string(),
7161
7160
  // Concise title for the step
7162
- reasoning: import_zod3.z.string(),
7161
+ reasoning: import_zod2.z.string(),
7163
7162
  // The detailed thought or analysis
7164
- action: import_zod3.z.string().optional(),
7163
+ action: import_zod2.z.string().optional(),
7165
7164
  // The action planned based on the thought (for 'thought' type)
7166
- result: import_zod3.z.string().optional(),
7165
+ result: import_zod2.z.string().optional(),
7167
7166
  // The result being analyzed (for 'analysis' type)
7168
- next_action: import_zod3.z.nativeEnum(NextAction).optional(),
7167
+ next_action: import_zod2.z.nativeEnum(NextAction).optional(),
7169
7168
  // What to do next (for 'analysis' type)
7170
- confidence: import_zod3.z.number().min(0).max(1).optional().default(0.8),
7169
+ confidence: import_zod2.z.number().min(0).max(1).optional().default(0.8),
7171
7170
  // Confidence level
7172
- timestamp: import_zod3.z.string().datetime(),
7171
+ timestamp: import_zod2.z.string().datetime(),
7173
7172
  // Timestamp of the step creation
7174
- historyEntryId: import_zod3.z.string(),
7173
+ historyEntryId: import_zod2.z.string(),
7175
7174
  // Link to the main history entry
7176
- agentId: import_zod3.z.string()
7175
+ agentId: import_zod2.z.string()
7177
7176
  // ID of the agent performing the step
7178
7177
  });
7179
7178
 
7180
7179
  // src/tool/reasoning/tools.ts
7181
- var thinkParametersSchema = import_zod4.z.object({
7182
- title: import_zod4.z.string().describe("A concise title for this thinking step"),
7183
- thought: import_zod4.z.string().describe("Your detailed thought or reasoning for this step"),
7184
- action: import_zod4.z.string().optional().describe("Optional: What you plan to do next based on this thought"),
7185
- confidence: import_zod4.z.number().min(0).max(1).optional().default(0.8).describe("Optional: How confident you are about this thought (0.0 to 1.0)")
7180
+ var thinkParametersSchema = import_zod3.z.object({
7181
+ title: import_zod3.z.string().describe("A concise title for this thinking step"),
7182
+ thought: import_zod3.z.string().describe("Your detailed thought or reasoning for this step"),
7183
+ action: import_zod3.z.string().optional().describe("Optional: What you plan to do next based on this thought"),
7184
+ confidence: import_zod3.z.number().min(0).max(1).optional().default(0.8).describe("Optional: How confident you are about this thought (0.0 to 1.0)")
7186
7185
  });
7187
7186
  var thinkTool = createTool({
7188
7187
  name: "think",
@@ -7218,14 +7217,14 @@ var thinkTool = createTool({
7218
7217
  }
7219
7218
  })
7220
7219
  });
7221
- var analyzeParametersSchema = import_zod4.z.object({
7222
- title: import_zod4.z.string().describe("A concise title for this analysis step"),
7223
- result: import_zod4.z.string().describe("The outcome or result of the previous action/thought being analyzed"),
7224
- analysis: import_zod4.z.string().describe("Your analysis of the result"),
7225
- next_action: import_zod4.z.nativeEnum(NextAction).describe(
7220
+ var analyzeParametersSchema = import_zod3.z.object({
7221
+ title: import_zod3.z.string().describe("A concise title for this analysis step"),
7222
+ result: import_zod3.z.string().describe("The outcome or result of the previous action/thought being analyzed"),
7223
+ analysis: import_zod3.z.string().describe("Your analysis of the result"),
7224
+ next_action: import_zod3.z.nativeEnum(NextAction).describe(
7226
7225
  `What to do next based on the analysis: "${"continue" /* CONTINUE */}", "${"validate" /* VALIDATE */}", or "${"final_answer" /* FINAL_ANSWER */}"`
7227
7226
  ),
7228
- confidence: import_zod4.z.number().min(0).max(1).optional().default(0.8).describe("Optional: How confident you are in this analysis (0.0 to 1.0)")
7227
+ confidence: import_zod3.z.number().min(0).max(1).optional().default(0.8).describe("Optional: How confident you are in this analysis (0.0 to 1.0)")
7229
7228
  });
7230
7229
  var analyzeTool = createTool({
7231
7230
  name: "analyze",
@@ -7487,15 +7486,15 @@ function serializeValueForDebug(value) {
7487
7486
  __name(serializeValueForDebug, "serializeValueForDebug");
7488
7487
 
7489
7488
  // src/retriever/tools/index.ts
7490
- var import_zod5 = require("zod");
7489
+ var import_zod4 = require("zod");
7491
7490
  var createRetrieverTool = /* @__PURE__ */ __name((retriever, options = {}) => {
7492
7491
  const toolName = options.name || "search_knowledge";
7493
7492
  const toolDescription = options.description || "Searches for relevant information in the knowledge base based on the query.";
7494
7493
  return createTool({
7495
7494
  name: toolName,
7496
7495
  description: toolDescription,
7497
- parameters: import_zod5.z.object({
7498
- query: import_zod5.z.string().describe("The search query to find relevant information")
7496
+ parameters: import_zod4.z.object({
7497
+ query: import_zod4.z.string().describe("The search query to find relevant information")
7499
7498
  }),
7500
7499
  execute: (_0) => __async(void 0, [_0], function* ({ query }) {
7501
7500
  const result = yield retriever.retrieve(query);