@promptbook/node 0.110.0-1 → 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 +11 -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/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +5 -3
- package/umd/index.umd.js +11 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -34,7 +34,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
34
34
|
* @generated
|
|
35
35
|
* @see https://github.com/webgptorg/promptbook
|
|
36
36
|
*/
|
|
37
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.110.0-
|
|
37
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.110.0-3';
|
|
38
38
|
/**
|
|
39
39
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
40
40
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -23964,6 +23964,7 @@ class OpenAiAssistantExecutionTools extends OpenAiExecutionTools {
|
|
|
23964
23964
|
getAssistant(assistantId) {
|
|
23965
23965
|
return new OpenAiAssistantExecutionTools({
|
|
23966
23966
|
...this.options,
|
|
23967
|
+
isCreatingNewAssistantsAllowed: this.isCreatingNewAssistantsAllowed,
|
|
23967
23968
|
assistantId,
|
|
23968
23969
|
});
|
|
23969
23970
|
}
|
|
@@ -24617,6 +24618,11 @@ class AgentLlmExecutionTools {
|
|
|
24617
24618
|
requirementsHash,
|
|
24618
24619
|
});
|
|
24619
24620
|
}
|
|
24621
|
+
// [0] Expose prepared externals
|
|
24622
|
+
if (this.preparedExternals) {
|
|
24623
|
+
this /* <- TODO: !!!!!! Remove */.preparedExternals.openaiAssistantId =
|
|
24624
|
+
assistant.assistantId;
|
|
24625
|
+
}
|
|
24620
24626
|
// Create modified chat prompt with agent system message specific to OpenAI Assistant
|
|
24621
24627
|
const promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools = {
|
|
24622
24628
|
...promptWithAgentModelRequirements,
|
|
@@ -24809,6 +24815,10 @@ class Agent extends AgentLlmExecutionTools {
|
|
|
24809
24815
|
* Human-readable titles for tool functions
|
|
24810
24816
|
*/
|
|
24811
24817
|
this.toolTitles = {};
|
|
24818
|
+
/**
|
|
24819
|
+
* Externals prepared for the agent, like OpenAI assistant, etc.
|
|
24820
|
+
*/
|
|
24821
|
+
this.preparedExternals = {};
|
|
24812
24822
|
// TODO: [🐱🚀] Add `Agent` simple "mocked" learning by appending to agent source
|
|
24813
24823
|
// TODO: [🐱🚀] Add `Agent` learning by promptbookAgent
|
|
24814
24824
|
this.teacherAgent = options.teacherAgent;
|