@autobe/agent 0.9.1 → 0.10.0
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/AutoBeAgent.js +16 -5
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +6 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeTokenUsage.d.ts +15 -1
- package/lib/context/AutoBeTokenUsage.js +56 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/context/IAutoBeApplicationProps.d.ts +0 -61
- package/lib/factory/createAutoBeApplication.js +298 -773
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/index.mjs +5116 -7271
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +82 -319
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeReviewer.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +97 -294
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +2 -2
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/index.d.ts +2 -2
- package/lib/orchestrate/index.js +4 -4
- package/lib/orchestrate/index.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +9 -3
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +56 -142
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +195 -199
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +75 -172
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +772 -1097
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/transformInterfaceHistories.js +2 -0
- package/lib/orchestrate/interface/transformInterfaceHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +64 -175
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +552 -1073
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +571 -1119
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js +9 -0
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +8 -0
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +11 -0
- package/lib/orchestrate/realize/orchestrateRealize.js +109 -0
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +25 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js +337 -0
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.d.ts +52 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js +57 -0
- package/lib/orchestrate/realize/orchestrateRealizeIntegrator.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.d.ts +80 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js +53 -0
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeValidator.d.ts +46 -0
- package/lib/orchestrate/realize/orchestrateRealizeValidator.js +37 -0
- package/lib/orchestrate/realize/orchestrateRealizeValidator.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +33 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +3 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +5 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js +127 -0
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +1 -0
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +2 -0
- package/lib/orchestrate/test/compile/completeTestCode.js +21 -0
- package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/orchestrate/test/{filterTestFileName.js → compile/filterTestFileName.js} +1 -1
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js +27 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
- package/lib/orchestrate/test/{compileTestScenario.js → compile/getTestScenarioArtifacts.js} +11 -5
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTest.js +14 -9
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +150 -349
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +323 -566
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js +139 -76
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
- package/lib/{utils/types/BackoffOptions.js → orchestrate/test/structures/IAutoBeTestFunction.js} +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +32 -22
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +2 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +112 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +3 -2
- package/lib/orchestrate/test/transformTestCorrectHistories.js +28 -41
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestWriteHistories.d.ts +5 -4
- package/lib/orchestrate/test/transformTestWriteHistories.js +169 -32
- package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -1
- package/lib/structures/IAutoBeConfig.d.ts +11 -0
- package/lib/structures/IAutoBeProps.d.ts +12 -1
- package/lib/utils/backoffRetry.d.ts +4 -7
- package/lib/utils/backoffRetry.js +19 -37
- package/lib/utils/backoffRetry.js.map +1 -1
- package/lib/utils/forceRetry.d.ts +1 -0
- package/lib/{orchestrate/orchestrateRealize.js → utils/forceRetry.js} +15 -8
- package/lib/utils/forceRetry.js.map +1 -0
- package/package.json +8 -8
- package/src/AutoBeAgent.ts +26 -4
- package/src/constants/AutoBeSystemPromptConstant.ts +6 -4
- package/src/context/AutoBeTokenUsage.ts +85 -1
- package/src/context/IAutoBeApplicationProps.ts +0 -62
- package/src/factory/createAutoBeApplication.ts +2 -3
- package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +8 -3
- package/src/orchestrate/analyze/AutoBeAnalyzeReviewer.ts +0 -1
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +8 -37
- package/src/orchestrate/facade/transformFacadeStateMessage.ts +2 -1
- package/src/orchestrate/index.ts +2 -2
- package/src/orchestrate/interface/orchestrateInterface.ts +7 -0
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +4 -3
- package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +26 -23
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +6 -4
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +14 -11
- package/src/orchestrate/interface/transformInterfaceHistories.ts +2 -0
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +10 -5
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +11 -5
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +16 -8
- package/src/orchestrate/prisma/transformPrismaComponentsHistories.ts +9 -0
- package/src/orchestrate/prisma/transformPrismaSchemaHistories.ts +8 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +169 -0
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +156 -0
- package/src/orchestrate/realize/orchestrateRealizeIntegrator.ts +75 -0
- package/src/orchestrate/realize/orchestrateRealizePlanner.ts +115 -0
- package/src/orchestrate/realize/orchestrateRealizeValidator.ts +64 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +36 -0
- package/src/orchestrate/realize/transformRealizeCoderHistories.ts +136 -0
- package/src/orchestrate/test/compile/completeTestCode.ts +35 -0
- package/src/orchestrate/test/{filterTestFileName.ts → compile/filterTestFileName.ts} +1 -1
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +24 -0
- package/src/orchestrate/test/{compileTestScenario.ts → compile/getTestScenarioArtifacts.ts} +17 -8
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +240 -0
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +316 -0
- package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -0
- package/src/orchestrate/test/orchestrateTest.ts +38 -16
- package/src/orchestrate/test/orchestrateTestCorrect.ts +111 -338
- package/src/orchestrate/test/orchestrateTestScenario.ts +114 -69
- package/src/orchestrate/test/orchestrateTestWrite.ts +55 -153
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +126 -0
- package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +32 -22
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +3 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +117 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteResult.ts +9 -0
- package/src/orchestrate/test/transformTestCorrectHistories.ts +38 -43
- package/src/orchestrate/test/transformTestWriteHistories.ts +89 -35
- package/src/structures/IAutoBeConfig.ts +9 -0
- package/src/structures/IAutoBeProps.ts +17 -1
- package/src/utils/backoffRetry.ts +25 -36
- package/src/utils/forceRetry.ts +13 -0
- package/lib/factory/invertOpenApiDocument.d.ts +0 -3
- package/lib/factory/invertOpenApiDocument.js +0 -51
- package/lib/factory/invertOpenApiDocument.js.map +0 -1
- package/lib/orchestrate/orchestrateRealize.d.ts +0 -5
- package/lib/orchestrate/orchestrateRealize.js.map +0 -1
- package/lib/orchestrate/test/compileTestScenario.d.ts +0 -5
- package/lib/orchestrate/test/compileTestScenario.js.map +0 -1
- package/lib/orchestrate/test/filterTestFileName.js.map +0 -1
- package/lib/utils/StringUtil.d.ts +0 -4
- package/lib/utils/StringUtil.js +0 -43
- package/lib/utils/StringUtil.js.map +0 -1
- package/lib/utils/types/BackoffOptions.d.ts +0 -12
- package/lib/utils/types/BackoffOptions.js.map +0 -1
- package/src/factory/invertOpenApiDocument.ts +0 -63
- package/src/orchestrate/orchestrateRealize.ts +0 -18
- package/src/utils/StringUtil.ts +0 -45
- package/src/utils/types/BackoffOptions.ts +0 -15
- /package/lib/orchestrate/test/{filterTestFileName.d.ts → compile/filterTestFileName.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoBeSystemPromptConstant.js","sourceRoot":"","sources":["../../src/constants/AutoBeSystemPromptConstant.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"AutoBeSystemPromptConstant.js","sourceRoot":"","sources":["../../src/constants/AutoBeSystemPromptConstant.ts"],"names":[],"mappings":";;AAsBC,CAAC"}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
import { AgenticaTokenUsage } from "@agentica/core";
|
|
2
|
-
|
|
2
|
+
import { IAutoBeTokenUsageJson } from "@autobe/interface";
|
|
3
|
+
import { IAutoBeApplication } from "./IAutoBeApplication";
|
|
4
|
+
export declare class AutoBeTokenUsage {
|
|
5
|
+
readonly facade: AgenticaTokenUsage;
|
|
6
|
+
readonly analyze: AgenticaTokenUsage;
|
|
7
|
+
readonly prisma: AgenticaTokenUsage;
|
|
8
|
+
readonly interface: AgenticaTokenUsage;
|
|
9
|
+
readonly test: AgenticaTokenUsage;
|
|
10
|
+
readonly realize: AgenticaTokenUsage;
|
|
11
|
+
constructor(props?: IAutoBeTokenUsageJson);
|
|
12
|
+
record(usage: AgenticaTokenUsage, additionalStages?: (keyof IAutoBeApplication)[]): void;
|
|
13
|
+
increment(usage: AutoBeTokenUsage): this;
|
|
14
|
+
static plus(usageA: AutoBeTokenUsage, usageB: AutoBeTokenUsage): AutoBeTokenUsage;
|
|
15
|
+
toJSON(): IAutoBeTokenUsageJson;
|
|
16
|
+
}
|
|
@@ -2,5 +2,60 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AutoBeTokenUsage = void 0;
|
|
4
4
|
const core_1 = require("@agentica/core");
|
|
5
|
-
|
|
5
|
+
class AutoBeTokenUsage {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
if (props === undefined) {
|
|
8
|
+
this.facade = new core_1.AgenticaTokenUsage();
|
|
9
|
+
this.analyze = new core_1.AgenticaTokenUsage();
|
|
10
|
+
this.prisma = new core_1.AgenticaTokenUsage();
|
|
11
|
+
this.interface = new core_1.AgenticaTokenUsage();
|
|
12
|
+
this.test = new core_1.AgenticaTokenUsage();
|
|
13
|
+
this.realize = new core_1.AgenticaTokenUsage();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
this.facade = new core_1.AgenticaTokenUsage(props.facade);
|
|
17
|
+
this.analyze = new core_1.AgenticaTokenUsage(props.analyze);
|
|
18
|
+
this.prisma = new core_1.AgenticaTokenUsage(props.prisma);
|
|
19
|
+
this.interface = new core_1.AgenticaTokenUsage(props.interface);
|
|
20
|
+
this.test = new core_1.AgenticaTokenUsage(props.test);
|
|
21
|
+
this.realize = new core_1.AgenticaTokenUsage(props.realize);
|
|
22
|
+
}
|
|
23
|
+
record(usage, additionalStages = []) {
|
|
24
|
+
this.facade.increment(usage);
|
|
25
|
+
additionalStages.forEach((stage) => {
|
|
26
|
+
this[stage].increment(usage);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
increment(usage) {
|
|
30
|
+
AutoBeTokenUsage.keys().forEach((key) => {
|
|
31
|
+
this[key].increment(usage[key]);
|
|
32
|
+
});
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
static plus(usageA, usageB) {
|
|
36
|
+
return new AutoBeTokenUsage({
|
|
37
|
+
facade: core_1.AgenticaTokenUsage.plus(usageA.facade, usageB.facade),
|
|
38
|
+
analyze: core_1.AgenticaTokenUsage.plus(usageA.analyze, usageB.analyze),
|
|
39
|
+
prisma: core_1.AgenticaTokenUsage.plus(usageA.prisma, usageB.prisma),
|
|
40
|
+
interface: core_1.AgenticaTokenUsage.plus(usageA.interface, usageB.interface),
|
|
41
|
+
test: core_1.AgenticaTokenUsage.plus(usageA.test, usageB.test),
|
|
42
|
+
realize: core_1.AgenticaTokenUsage.plus(usageA.realize, usageB.realize),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
toJSON() {
|
|
46
|
+
return {
|
|
47
|
+
facade: this.facade.toJSON(),
|
|
48
|
+
analyze: this.analyze.toJSON(),
|
|
49
|
+
prisma: this.prisma.toJSON(),
|
|
50
|
+
interface: this.interface.toJSON(),
|
|
51
|
+
test: this.test.toJSON(),
|
|
52
|
+
realize: this.realize.toJSON(),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
static keys() {
|
|
57
|
+
return ["facade", "analyze", "prisma", "interface", "test", "realize"];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.AutoBeTokenUsage = AutoBeTokenUsage;
|
|
6
61
|
//# sourceMappingURL=AutoBeTokenUsage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoBeTokenUsage.js","sourceRoot":"","sources":["../../src/context/AutoBeTokenUsage.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;
|
|
1
|
+
{"version":3,"file":"AutoBeTokenUsage.js","sourceRoot":"","sources":["../../src/context/AutoBeTokenUsage.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;AAKpD,MAAa,gBAAgB;IAQ3B,YAAmB,KAA6B;QAC9C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAkB,EAAE,CAAC;YACvC,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAkB,EAAE,CAAC;YACxC,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAkB,EAAE,CAAC;YACvC,IAAI,CA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2
|
/** The reason of the function call. */
|
|
3
3
|
reason: string;
|
|
4
|
-
/**
|
|
5
|
-
* # Define prompts to translate user planning requirements into messages for internal agents
|
|
6
|
-
*
|
|
7
|
-
* This prompt defines how to convert a user's planning-oriented requirements
|
|
8
|
-
* into a structured message for an internal agent.
|
|
9
|
-
*
|
|
10
|
-
* All content the user provides must be included in the message. However, if
|
|
11
|
-
* some parts of the user's input are inappropriate or insufficient from a
|
|
12
|
-
* planning standpoint, you are allowed to add **supplementary remarks**—but
|
|
13
|
-
* only under strict rules.
|
|
14
|
-
*
|
|
15
|
-
* # Supplementary Remark Rules
|
|
16
|
-
*
|
|
17
|
-
* 1. **Definition** A supplementary remark is additional information that may
|
|
18
|
-
* differ from the user's original intent. Because of this, **you must
|
|
19
|
-
* clearly indicate that it is _not_ part of the user’s thinking**.
|
|
20
|
-
* 2. **When to Supplement**
|
|
21
|
-
*
|
|
22
|
-
* - If the user's input reveals a lack of technical understanding (e.g.,
|
|
23
|
-
* suggesting "put all data into one table"), and the plan is not an MVP or
|
|
24
|
-
* PoC, it's encouraged to make reasonable additions for a more scalable or
|
|
25
|
-
* robust structure.
|
|
26
|
-
* - If there are clear gaps in the user's planning logic, you may supplement
|
|
27
|
-
* the content to ensure completeness.
|
|
28
|
-
*
|
|
29
|
-
* 3. **When Not to Supplement**
|
|
30
|
-
*
|
|
31
|
-
* - If the user's input is vague or ambiguous, **do not assume or add extra
|
|
32
|
-
* details**. Instead, it’s better to ask the user follow-up questions to
|
|
33
|
-
* clarify their intent.
|
|
34
|
-
* - If the user has made no comment on design, **do not impose design-related
|
|
35
|
-
* decisions** (e.g., colors, fonts, tone). However, you may state
|
|
36
|
-
* explicitly that no design requirements were provided.
|
|
37
|
-
* - Generic advice like "UX should be good" can be omitted unless it adds
|
|
38
|
-
* value, as such goals are assumed in all services.
|
|
39
|
-
*
|
|
40
|
-
* # Style Guidelines
|
|
41
|
-
*
|
|
42
|
-
* This prompt is delivered to the sub-agent, and several are created for
|
|
43
|
-
* parallel processing of the sub-agent. Additionally, there should be a guide
|
|
44
|
-
* to style, since sub-agents cannot create different styles of documents due
|
|
45
|
-
* to the disconnection of their conversations with each other.
|
|
46
|
-
*
|
|
47
|
-
* For example, there should be a hyperlink to the previous document, the next
|
|
48
|
-
* document, before or after the document, or there should be no more than N
|
|
49
|
-
* headings. The entire content of the document will have requirements, such
|
|
50
|
-
* as maintaining informal or formal language.
|
|
51
|
-
*
|
|
52
|
-
* The style guide should include conventions for Markdown formatting elements
|
|
53
|
-
* such as headings, lists, and tables. Additionally, it should define
|
|
54
|
-
* expectations regarding document length and overall composition. When
|
|
55
|
-
* describing structural guidelines, include a template to illustrate the
|
|
56
|
-
* recommended format.
|
|
57
|
-
*
|
|
58
|
-
* # Limiting the volume of a document
|
|
59
|
-
*
|
|
60
|
-
* However, do not go beyond the volume guide; each agent only needs to create
|
|
61
|
-
* one page because the agent receiving this document will be created as many
|
|
62
|
-
* as the number of pages.
|
|
63
|
-
*/
|
|
64
|
-
userPlanningRequirements?: string;
|
|
65
4
|
}
|