@eko-ai/eko 1.1.2 → 1.1.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/dist/index.cjs.js CHANGED
@@ -8962,7 +8962,7 @@ class OpenaiProvider {
8962
8962
  messages: _messages,
8963
8963
  tools: tools,
8964
8964
  tool_choice: tool_choice,
8965
- parallel_tool_calls: false,
8965
+ parallel_tool_calls: tools ? false : undefined,
8966
8966
  };
8967
8967
  }
8968
8968
  async generateText(messages, params) {
@@ -9769,7 +9769,7 @@ class ActionImpl {
9769
9769
  let input = unwrapped.toolCall.input;
9770
9770
  console.log("unwrapped", unwrapped);
9771
9771
  if (unwrapped.userSidePrompt) {
9772
- (_d = (_b = context.callback) === null || _b === void 0 ? void 0 : (_c = _b.hooks).onLlmMessageUserSidePrompt) === null || _d === void 0 ? void 0 : _d.call(_c, unwrapped.userSidePrompt);
9772
+ (_d = (_b = context.callback) === null || _b === void 0 ? void 0 : (_c = _b.hooks).onLlmMessageUserSidePrompt) === null || _d === void 0 ? void 0 : _d.call(_c, unwrapped.userSidePrompt, toolCall.name);
9773
9773
  }
9774
9774
  else {
9775
9775
  console.warn("LLM returns without `userSidePrompt`");
@@ -10519,7 +10519,7 @@ class Eko {
10519
10519
  this.prompt = "";
10520
10520
  this.tabs = [];
10521
10521
  this.workflow = undefined;
10522
- console.info("using Eko@" + "14df29b1e490dfffd3cffc0548ab7e6d1e2e219a");
10522
+ console.info("using Eko@" + "c0b40dca9bf244564e6b78c50d95b136ac931aa7");
10523
10523
  console.warn("this version is POC, should not used for production");
10524
10524
  this.llmProvider = LLMProviderFactory.buildLLMProvider(llmConfig);
10525
10525
  this.ekoConfig = this.buildEkoConfig(ekoConfig);
package/dist/index.esm.js CHANGED
@@ -8958,7 +8958,7 @@ class OpenaiProvider {
8958
8958
  messages: _messages,
8959
8959
  tools: tools,
8960
8960
  tool_choice: tool_choice,
8961
- parallel_tool_calls: false,
8961
+ parallel_tool_calls: tools ? false : undefined,
8962
8962
  };
8963
8963
  }
8964
8964
  async generateText(messages, params) {
@@ -9765,7 +9765,7 @@ class ActionImpl {
9765
9765
  let input = unwrapped.toolCall.input;
9766
9766
  console.log("unwrapped", unwrapped);
9767
9767
  if (unwrapped.userSidePrompt) {
9768
- (_d = (_b = context.callback) === null || _b === void 0 ? void 0 : (_c = _b.hooks).onLlmMessageUserSidePrompt) === null || _d === void 0 ? void 0 : _d.call(_c, unwrapped.userSidePrompt);
9768
+ (_d = (_b = context.callback) === null || _b === void 0 ? void 0 : (_c = _b.hooks).onLlmMessageUserSidePrompt) === null || _d === void 0 ? void 0 : _d.call(_c, unwrapped.userSidePrompt, toolCall.name);
9769
9769
  }
9770
9770
  else {
9771
9771
  console.warn("LLM returns without `userSidePrompt`");
@@ -10515,7 +10515,7 @@ class Eko {
10515
10515
  this.prompt = "";
10516
10516
  this.tabs = [];
10517
10517
  this.workflow = undefined;
10518
- console.info("using Eko@" + "14df29b1e490dfffd3cffc0548ab7e6d1e2e219a");
10518
+ console.info("using Eko@" + "c0b40dca9bf244564e6b78c50d95b136ac931aa7");
10519
10519
  console.warn("this version is POC, should not used for production");
10520
10520
  this.llmProvider = LLMProviderFactory.buildLLMProvider(llmConfig);
10521
10521
  this.ekoConfig = this.buildEkoConfig(ekoConfig);
@@ -46,7 +46,7 @@ export interface WorkflowCallback {
46
46
  afterWorkflow?: (workflow: Workflow, variables: Map<string, unknown>) => Promise<void>;
47
47
  onTabCreated?: (tabId: number) => Promise<void>;
48
48
  onLlmMessage?: (textContent: string) => Promise<void>;
49
- onLlmMessageUserSidePrompt?: (text: string) => Promise<void>;
49
+ onLlmMessageUserSidePrompt?: (text: string, toolName: string) => Promise<void>;
50
50
  onHumanInputText?: (question: string) => Promise<string>;
51
51
  onHumanInputSingleChoice?: (question: string, choices: string[]) => Promise<string>;
52
52
  onHumanInputMultipleChoice?: (question: string, choices: string[]) => Promise<string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eko-ai/eko",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Empowering language to transform human words into action.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",