@promptbook/remote-server 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 CHANGED
@@ -39,7 +39,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
39
39
  * @generated
40
40
  * @see https://github.com/webgptorg/promptbook
41
41
  */
42
- const PROMPTBOOK_ENGINE_VERSION = '0.110.0-1';
42
+ const PROMPTBOOK_ENGINE_VERSION = '0.110.0-3';
43
43
  /**
44
44
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
45
45
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -21068,6 +21068,7 @@ class OpenAiAssistantExecutionTools extends OpenAiExecutionTools {
21068
21068
  getAssistant(assistantId) {
21069
21069
  return new OpenAiAssistantExecutionTools({
21070
21070
  ...this.options,
21071
+ isCreatingNewAssistantsAllowed: this.isCreatingNewAssistantsAllowed,
21071
21072
  assistantId,
21072
21073
  });
21073
21074
  }
@@ -21721,6 +21722,11 @@ class AgentLlmExecutionTools {
21721
21722
  requirementsHash,
21722
21723
  });
21723
21724
  }
21725
+ // [0] Expose prepared externals
21726
+ if (this.preparedExternals) {
21727
+ this /* <- TODO: !!!!!! Remove */.preparedExternals.openaiAssistantId =
21728
+ assistant.assistantId;
21729
+ }
21724
21730
  // Create modified chat prompt with agent system message specific to OpenAI Assistant
21725
21731
  const promptWithAgentModelRequirementsForOpenAiAssistantExecutionTools = {
21726
21732
  ...promptWithAgentModelRequirements,
@@ -21913,6 +21919,10 @@ class Agent extends AgentLlmExecutionTools {
21913
21919
  * Human-readable titles for tool functions
21914
21920
  */
21915
21921
  this.toolTitles = {};
21922
+ /**
21923
+ * Externals prepared for the agent, like OpenAI assistant, etc.
21924
+ */
21925
+ this.preparedExternals = {};
21916
21926
  // TODO: [🐱‍🚀] Add `Agent` simple "mocked" learning by appending to agent source
21917
21927
  // TODO: [🐱‍🚀] Add `Agent` learning by promptbookAgent
21918
21928
  this.teacherAgent = options.teacherAgent;