@blocklet/pages-kit-agents 0.6.17 → 0.6.19
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/multi-agent-page-writer.js +1 -1
- package/lib/cjs/agents/page-structure-planner.d.ts +6 -38
- package/lib/cjs/agents/page-structure-planner.js +2 -2
- package/lib/cjs/agents/router-datacache-generator.d.ts +1 -1
- package/lib/cjs/agents/template-designer.js +1 -1
- package/lib/cjs/agents/template-generator.d.ts +2 -21
- package/lib/cjs/agents/template-generator.js +4 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/agent-utils.d.ts +1 -1
- package/lib/cjs/utils/agent-utils.js +2 -2
- package/lib/esm/agents/multi-agent-page-writer.js +1 -1
- package/lib/esm/agents/page-structure-planner.d.ts +6 -38
- package/lib/esm/agents/page-structure-planner.js +2 -2
- package/lib/esm/agents/router-datacache-generator.d.ts +1 -1
- package/lib/esm/agents/template-designer.js +1 -1
- package/lib/esm/agents/template-generator.d.ts +2 -21
- package/lib/esm/agents/template-generator.js +5 -3
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/agent-utils.d.ts +1 -1
- package/lib/esm/utils/agent-utils.js +1 -1
- package/lib/types/agents/page-structure-planner.d.ts +6 -38
- package/lib/types/agents/router-datacache-generator.d.ts +1 -1
- package/lib/types/agents/template-generator.d.ts +2 -21
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/agent-utils.d.ts +1 -1
- package/package.json +7 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FSMemory, FSMemoryOptions } from '@aigne/agent-library/fs-memory/index.js';
|
|
2
1
|
import { AnthropicChatModel } from '@aigne/anthropic';
|
|
3
2
|
import { DeepSeekChatModel } from '@aigne/deepseek';
|
|
3
|
+
import { FSMemory, FSMemoryOptions } from '@aigne/fs-memory';
|
|
4
4
|
import { GeminiChatModel } from '@aigne/gemini';
|
|
5
5
|
import { OpenAIChatModel } from '@aigne/openai';
|
|
6
6
|
import { XAIChatModel } from '@aigne/xai';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FSMemory } from '@aigne/agent-library/fs-memory/index.js';
|
|
2
1
|
import { AnthropicChatModel } from '@aigne/anthropic';
|
|
3
2
|
import { DeepSeekChatModel } from '@aigne/deepseek';
|
|
3
|
+
import { FSMemory } from '@aigne/fs-memory';
|
|
4
4
|
import { GeminiChatModel } from '@aigne/gemini';
|
|
5
5
|
import { OpenAIChatModel } from '@aigne/openai';
|
|
6
6
|
import { XAIChatModel } from '@aigne/xai';
|
|
@@ -5,19 +5,19 @@ export declare const plannerParamsSchema: z.ZodObject<{
|
|
|
5
5
|
context: z.ZodString;
|
|
6
6
|
question: z.ZodString;
|
|
7
7
|
locale: z.ZodString;
|
|
8
|
-
|
|
8
|
+
outputSchemaText: z.ZodString;
|
|
9
9
|
expectedSections: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
outputSchema: string;
|
|
12
11
|
context: string;
|
|
13
12
|
question: string;
|
|
14
13
|
locale: string;
|
|
14
|
+
outputSchemaText: string;
|
|
15
15
|
expectedSections: string;
|
|
16
16
|
}, {
|
|
17
|
-
outputSchema: string;
|
|
18
17
|
context: string;
|
|
19
18
|
question: string;
|
|
20
19
|
locale: string;
|
|
20
|
+
outputSchemaText: string;
|
|
21
21
|
expectedSections: string;
|
|
22
22
|
}>;
|
|
23
23
|
export interface PageStructurePlannerOutput {
|
|
@@ -26,44 +26,12 @@ export interface PageStructurePlannerOutput {
|
|
|
26
26
|
sectionContentPlan: string;
|
|
27
27
|
}>;
|
|
28
28
|
}
|
|
29
|
-
export declare const pageStructurePlannerWithReflection: ReflectionAgent<
|
|
30
|
-
outputSchema: string;
|
|
31
|
-
context: string;
|
|
32
|
-
question: string;
|
|
33
|
-
locale: string;
|
|
34
|
-
expectedSections: string;
|
|
35
|
-
validationFeedback?: {
|
|
36
|
-
isValid: boolean;
|
|
37
|
-
missingSections: string[];
|
|
38
|
-
duplicateContent: {
|
|
39
|
-
description: string;
|
|
40
|
-
sections: string[];
|
|
41
|
-
score: number;
|
|
42
|
-
suggestion: string;
|
|
43
|
-
}[];
|
|
44
|
-
} | undefined;
|
|
45
|
-
structurePlan?: {
|
|
46
|
-
sectionName: string;
|
|
47
|
-
sectionContentPlan: string;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
isApproved: boolean;
|
|
51
|
-
validationFeedback: {
|
|
52
|
-
isValid: boolean;
|
|
53
|
-
missingSections: string[];
|
|
54
|
-
duplicateContent: {
|
|
55
|
-
description: string;
|
|
56
|
-
sections: string[];
|
|
57
|
-
score: number;
|
|
58
|
-
suggestion: string;
|
|
59
|
-
}[];
|
|
60
|
-
};
|
|
61
|
-
}>;
|
|
29
|
+
export declare const pageStructurePlannerWithReflection: ReflectionAgent<import("@aigne/core").Message, import("@aigne/core").Message>;
|
|
62
30
|
export declare const pageStructurePlannerAgent: AIAgent<{
|
|
63
|
-
outputSchema: string;
|
|
64
31
|
context: string;
|
|
65
32
|
question: string;
|
|
66
33
|
locale: string;
|
|
34
|
+
outputSchemaText: string;
|
|
67
35
|
expectedSections: string;
|
|
68
36
|
validationFeedback?: {
|
|
69
37
|
isValid: boolean;
|
|
@@ -80,10 +48,10 @@ export declare const pageStructurePlannerAgent: AIAgent<{
|
|
|
80
48
|
sectionContentPlan: string;
|
|
81
49
|
}[] | undefined;
|
|
82
50
|
}, {
|
|
83
|
-
outputSchema: string;
|
|
84
51
|
context: string;
|
|
85
52
|
question: string;
|
|
86
53
|
locale: string;
|
|
54
|
+
outputSchemaText: string;
|
|
87
55
|
expectedSections: string;
|
|
88
56
|
structurePlan: {
|
|
89
57
|
sectionName: string;
|
|
@@ -39,28 +39,9 @@ export declare const generatorParamsSchema: z.ZodObject<{
|
|
|
39
39
|
component: string;
|
|
40
40
|
}[];
|
|
41
41
|
}>;
|
|
42
|
-
export declare const generatorAgentWithReflection: ReflectionAgent<
|
|
43
|
-
ascii: string;
|
|
44
|
-
collectResult: string;
|
|
45
|
-
filteredComponentList: {
|
|
46
|
-
name: string;
|
|
47
|
-
description: string;
|
|
48
|
-
id: string;
|
|
49
|
-
component: string;
|
|
50
|
-
}[];
|
|
51
|
-
}, {
|
|
52
|
-
isApproved: boolean;
|
|
53
|
-
feedback: {
|
|
54
|
-
description: string;
|
|
55
|
-
line: number;
|
|
56
|
-
column: number;
|
|
57
|
-
keyword: string;
|
|
58
|
-
rule: string;
|
|
59
|
-
isRequired: boolean;
|
|
60
|
-
}[];
|
|
61
|
-
}>;
|
|
42
|
+
export declare const generatorAgentWithReflection: ReflectionAgent<import("@aigne/core").Message, import("@aigne/core").Message>;
|
|
62
43
|
export declare const saveTemplateYamlAgent: FunctionAgent<{
|
|
63
44
|
templateYaml: string;
|
|
64
45
|
}, {
|
|
65
46
|
$message: string;
|
|
66
|
-
}
|
|
47
|
+
}>;
|