@blocklet/pages-kit-agents 0.6.71 → 0.6.73

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.
@@ -54,6 +54,7 @@ async function generatePageContentMultiAgent(input) {
54
54
  const model = await (0, agent_utils_js_1.getModel)(modelName);
55
55
  // 3-4 使用反思工作流生成页面结构
56
56
  const planningEngine = new core_1.AIGNE({
57
+ // @ts-ignore
57
58
  model,
58
59
  });
59
60
  const structurePlanResult = await planningEngine.invoke(page_structure_planner_js_1.pageStructurePlannerWithReflection, {
@@ -81,6 +82,7 @@ async function generatePageContentMultiAgent(input) {
81
82
  }
82
83
  structurePlanMap = Object.fromEntries(structurePlan.map((item) => [item.sectionName, item.sectionContentPlan]));
83
84
  const engine = new core_1.AIGNE({
85
+ // @ts-ignore
84
86
  model,
85
87
  });
86
88
  // 5. 逐个生成各section内容
@@ -181,6 +183,7 @@ async function generateSingleSectionContent({ context, question, locale, section
181
183
  const sectionContentAgent = await (0, section_content_generator_js_1.createSectionContentAgent)(sectionContentInput);
182
184
  const model = await (0, agent_utils_js_1.getModel)(modelName);
183
185
  const engine = new core_1.AIGNE({
186
+ // @ts-ignore
184
187
  model,
185
188
  });
186
189
  // eslint-disable-next-line no-await-in-loop