@blocklet/pages-kit-agents 0.7.25 → 0.7.26
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/cjs/agents/page-structure-planner.js +2 -0
- package/lib/cjs/agents/template-designer.js +1 -0
- package/lib/cjs/agents/template-generator.js +2 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/agents/page-structure-planner.js +2 -0
- package/lib/esm/agents/template-designer.js +1 -0
- package/lib/esm/agents/template-generator.js +2 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -92,6 +92,7 @@ const plannerAgent = AIAgent.from({
|
|
|
92
92
|
...plannerParamsSchema.shape,
|
|
93
93
|
structurePlan: structurePlanSchema,
|
|
94
94
|
}),
|
|
95
|
+
// @ts-expect-error
|
|
95
96
|
memory,
|
|
96
97
|
instructions: plannerInstructions,
|
|
97
98
|
includeInputInOutput: true,
|
|
@@ -103,6 +104,7 @@ const validatorAgent = AIAgent.from({
|
|
|
103
104
|
...plannerParamsSchema.shape,
|
|
104
105
|
structurePlan: structurePlanSchema,
|
|
105
106
|
}),
|
|
107
|
+
// @ts-expect-error
|
|
106
108
|
memory,
|
|
107
109
|
outputSchema: z.object({
|
|
108
110
|
isApproved: z.boolean().describe('结构规划是否符合要求,无缺失 section 且无严重重复内容'),
|
|
@@ -137,6 +137,7 @@ const generatorAgent = AIAgent.from({
|
|
|
137
137
|
...generatorParamsSchema.shape,
|
|
138
138
|
templateYaml: templateYamlSchema,
|
|
139
139
|
}),
|
|
140
|
+
// @ts-expect-error
|
|
140
141
|
memory,
|
|
141
142
|
instructions: `
|
|
142
143
|
${generatorAgentInstructions}
|
|
@@ -147,6 +148,7 @@ const validatorAgent = AIAgent.from({
|
|
|
147
148
|
name: 'validator',
|
|
148
149
|
description: '验证 Yaml 结构符合 Pages Kit 框架的 Yaml Schema 结构',
|
|
149
150
|
inputSchema: generatorParamsSchema,
|
|
151
|
+
// @ts-expect-error
|
|
150
152
|
memory,
|
|
151
153
|
outputSchema: z.object({
|
|
152
154
|
isApproved: z.boolean().describe('模板 Yaml 结构是否符合要求,feedback 中是否存在必须修改的项'),
|