@blocklet/pages-kit-agents 0.6.70 → 0.6.72
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.
|
@@ -50,6 +50,7 @@ export default async function generatePageContentMultiAgent(input) {
|
|
|
50
50
|
const model = await getModel(modelName);
|
|
51
51
|
// 3-4 使用反思工作流生成页面结构
|
|
52
52
|
const planningEngine = new AIGNE({
|
|
53
|
+
// @ts-ignore
|
|
53
54
|
model,
|
|
54
55
|
});
|
|
55
56
|
const structurePlanResult = await planningEngine.invoke(pageStructurePlannerWithReflection, {
|
|
@@ -77,6 +78,7 @@ export default async function generatePageContentMultiAgent(input) {
|
|
|
77
78
|
}
|
|
78
79
|
structurePlanMap = Object.fromEntries(structurePlan.map((item) => [item.sectionName, item.sectionContentPlan]));
|
|
79
80
|
const engine = new AIGNE({
|
|
81
|
+
// @ts-ignore
|
|
80
82
|
model,
|
|
81
83
|
});
|
|
82
84
|
// 5. 逐个生成各section内容
|
|
@@ -177,6 +179,7 @@ export async function generateSingleSectionContent({ context, question, locale,
|
|
|
177
179
|
const sectionContentAgent = await createSectionContentAgent(sectionContentInput);
|
|
178
180
|
const model = await getModel(modelName);
|
|
179
181
|
const engine = new AIGNE({
|
|
182
|
+
// @ts-ignore
|
|
180
183
|
model,
|
|
181
184
|
});
|
|
182
185
|
// eslint-disable-next-line no-await-in-loop
|