@promptbook/wizard 0.112.0-23 → 0.112.0-25
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/esm/index.es.js +6 -13
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +2 -0
- package/esm/src/_packages/types.index.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +14 -2
- package/esm/src/book-components/Chat/Chat/ChatRatingModal.d.ts +5 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +5 -1
- package/esm/src/book-components/Chat/hooks/useChatRatings.d.ts +5 -1
- package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +53 -0
- package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
- package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +47 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +6 -13
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +2 -0
- package/umd/src/_packages/types.index.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +14 -2
- package/umd/src/book-components/Chat/Chat/ChatRatingModal.d.ts +5 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +5 -1
- package/umd/src/book-components/Chat/hooks/useChatRatings.d.ts +5 -1
- package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +53 -0
- package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
- package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +47 -0
- package/umd/src/version.d.ts +1 -1
package/esm/index.es.js
CHANGED
|
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
38
38
|
* @generated
|
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
|
40
40
|
*/
|
|
41
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
41
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-25';
|
|
42
42
|
/**
|
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -19203,10 +19203,10 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
19203
19203
|
if (!trimmedContent) {
|
|
19204
19204
|
return requirements;
|
|
19205
19205
|
}
|
|
19206
|
-
//
|
|
19206
|
+
// Add goal to the system message
|
|
19207
19207
|
const goalSection = `Goal: ${trimmedContent}`;
|
|
19208
|
-
|
|
19209
|
-
return this.
|
|
19208
|
+
const requirementsWithGoal = this.appendToSystemMessage(requirements, goalSection, '\n\n');
|
|
19209
|
+
return this.appendToPromptSuffix(requirementsWithGoal, goalSection);
|
|
19210
19210
|
}
|
|
19211
19211
|
}
|
|
19212
19212
|
/**
|
|
@@ -22016,15 +22016,7 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
22016
22016
|
// Add rule to the system message
|
|
22017
22017
|
const ruleSection = `Rule: ${trimmedContent}`;
|
|
22018
22018
|
const requirementsWithRule = this.appendToSystemMessage(requirements, ruleSection, '\n\n');
|
|
22019
|
-
|
|
22020
|
-
.split(/\r?\n/)
|
|
22021
|
-
.map((line) => line.trim())
|
|
22022
|
-
.filter(Boolean)
|
|
22023
|
-
.map((line) => `- ${line}`);
|
|
22024
|
-
if (ruleLines.length === 0) {
|
|
22025
|
-
return requirementsWithRule;
|
|
22026
|
-
}
|
|
22027
|
-
return this.appendToPromptSuffix(requirementsWithRule, ruleLines.join('\n'));
|
|
22019
|
+
return this.appendToPromptSuffix(requirementsWithRule, ruleSection);
|
|
22028
22020
|
}
|
|
22029
22021
|
}
|
|
22030
22022
|
/**
|
|
@@ -37926,6 +37918,7 @@ class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandler {
|
|
|
37926
37918
|
};
|
|
37927
37919
|
const streamResult = await run(agentForRun, inputItems, {
|
|
37928
37920
|
stream: true,
|
|
37921
|
+
maxTurns: 200,
|
|
37929
37922
|
context: {
|
|
37930
37923
|
parameters: prompt.parameters,
|
|
37931
37924
|
onToolProgress: onProgress,
|