@promptbook/browser 0.110.0-2 → 0.110.0-3
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 +10 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageList.d.ts +2 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/hooks/useChatActionsOverlap.d.ts +3 -6
- package/esm/typings/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +2 -1
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +6 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +5 -2
- package/umd/index.umd.js +10 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.110.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.110.0-3';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -19284,6 +19284,11 @@ class AgentLlmExecutionTools {
|
|
|
19284
19284
|
requirementsHash,
|
|
19285
19285
|
});
|
|
19286
19286
|
}
|
|
19287
|
+
// [0] Expose prepared externals
|
|
19288
|
+
if (this.preparedExternals) {
|
|
19289
|
+
this /* <- TODO: !!!!!! Remove */.preparedExternals.openaiAssistantId =
|
|
19290
|
+
assistant.assistantId;
|
|
19291
|
+
}
|
|
19287
19292
|
// Create modified chat prompt with agent system message specific to OpenAI Assistant
|
|
19288
19293
|
const promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools = {
|
|
19289
19294
|
...promptWithAgentModelRequirements,
|
|
@@ -19476,6 +19481,10 @@ class Agent extends AgentLlmExecutionTools {
|
|
|
19476
19481
|
* Human-readable titles for tool functions
|
|
19477
19482
|
*/
|
|
19478
19483
|
this.toolTitles = {};
|
|
19484
|
+
/**
|
|
19485
|
+
* Externals prepared for the agent, like OpenAI assistant, etc.
|
|
19486
|
+
*/
|
|
19487
|
+
this.preparedExternals = {};
|
|
19479
19488
|
// TODO: [🐱🚀] Add `Agent` simple "mocked" learning by appending to agent source
|
|
19480
19489
|
// TODO: [🐱🚀] Add `Agent` learning by promptbookAgent
|
|
19481
19490
|
this.teacherAgent = options.teacherAgent;
|