@blocklet/pages-kit-agents 0.5.30 → 0.5.32
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/content-reviwer.d.ts +2 -2
- package/lib/cjs/agents/page-metadata-generator.d.ts +1 -1
- package/lib/cjs/agents/page-structure-planner.d.ts +1 -1
- package/lib/cjs/agents/page-structure-planner.js +0 -5
- package/lib/cjs/agents/page-structure-validator.d.ts +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/agents/content-reviwer.d.ts +2 -2
- package/lib/esm/agents/page-metadata-generator.d.ts +1 -1
- package/lib/esm/agents/page-structure-planner.d.ts +1 -1
- package/lib/esm/agents/page-structure-planner.js +0 -5
- package/lib/esm/agents/page-structure-validator.d.ts +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/agents/content-reviwer.d.ts +2 -2
- package/lib/types/agents/page-metadata-generator.d.ts +1 -1
- package/lib/types/agents/page-structure-planner.d.ts +1 -1
- package/lib/types/agents/page-structure-validator.d.ts +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
|
@@ -2,16 +2,16 @@ import { AIAgent } from '@aigne/core';
|
|
|
2
2
|
export declare const contentReviewerAgent: AIAgent<{
|
|
3
3
|
question: string;
|
|
4
4
|
locale: string;
|
|
5
|
-
dataSource: string;
|
|
6
5
|
content: string;
|
|
6
|
+
dataSource: string;
|
|
7
7
|
}, {
|
|
8
8
|
result: {
|
|
9
9
|
total_score: number;
|
|
10
10
|
level: string;
|
|
11
11
|
suggestions: string[];
|
|
12
12
|
dimension_scores: {
|
|
13
|
-
name: string;
|
|
14
13
|
score: number;
|
|
14
|
+
name: string;
|
|
15
15
|
maxScore: number;
|
|
16
16
|
comment: string;
|
|
17
17
|
}[];
|
|
@@ -29,10 +29,10 @@ export interface PageStructurePlannerOutput {
|
|
|
29
29
|
}>;
|
|
30
30
|
}
|
|
31
31
|
export declare const pageStructurePlannerAgent: AIAgent<{
|
|
32
|
-
outputSchema: string;
|
|
33
32
|
context: string;
|
|
34
33
|
question: string;
|
|
35
34
|
locale: string;
|
|
35
|
+
outputSchema: string;
|
|
36
36
|
expectedSections: string;
|
|
37
37
|
initialStructurePlan: {
|
|
38
38
|
sectionName: string;
|
|
@@ -38,11 +38,6 @@ const prompt = `您是一名有着丰富经验且富有创意的页面结构规
|
|
|
38
38
|
5. 如果 Section 中包含列表数据,根据输入上下文中包含的数据,明确指定列表数据的数量,尽可能全的展示上下文中提供的相关数据。
|
|
39
39
|
6. 如果初始结构规划中包含的section,请根据初始结构规划中的内容规划,保持初始结构规划中的内容规划。
|
|
40
40
|
|
|
41
|
-
针对不同类型的section,考虑以下内容:
|
|
42
|
-
- Hero Section: 应包含产品的核心价值主张和简短描述
|
|
43
|
-
- Feature Section: 应详细说明产品的关键功能和优势
|
|
44
|
-
- FAQ Section: 应包含用户可能提出的问题和相应答案
|
|
45
|
-
- 其他section: 根据section的描述规划合适内容
|
|
46
41
|
|
|
47
42
|
## 初始结构规划
|
|
48
43
|
{{initialStructurePlan}}
|
|
@@ -9,9 +9,9 @@ export interface ValidatePageStructureInput {
|
|
|
9
9
|
outputSchema: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const pageStructureValidatorAgent: AIAgent<{
|
|
12
|
-
outputSchema: string;
|
|
13
12
|
context: string;
|
|
14
13
|
question: string;
|
|
14
|
+
outputSchema: string;
|
|
15
15
|
expectedSections: string;
|
|
16
16
|
structurePlan: {
|
|
17
17
|
sectionName: string;
|