@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.
@@ -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 且无严重重复内容'),
@@ -54,6 +54,7 @@ export const designerAgent = AIAgent.from({
54
54
  }))
55
55
  .describe('过滤后的组件列表,只包含页面中需要的组件'),
56
56
  }),
57
+ // @ts-expect-error
57
58
  memory,
58
59
  instructions: `
59
60
  ${agentInstructions}
@@ -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 中是否存在必须修改的项'),