@cellaware/utils 7.0.1 → 7.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.
@@ -70,6 +70,9 @@ export class SingleActionChain extends BaseChain {
70
70
  for (const inputKey of this._inputKeys) {
71
71
  llmInputs[inputKey] = values[inputKey];
72
72
  }
73
+ console.log(values);
74
+ console.log(runManager);
75
+ console.log(runManager.getChild());
73
76
  const llmAnswer = await llmChain.invoke(llmInputs, {
74
77
  callbacks: runManager ? [runManager.getChild()] : undefined,
75
78
  });
@@ -233,7 +236,7 @@ Your translation here:
233
236
  return chain.invoke(args, {
234
237
  callbacks: [
235
238
  {
236
- handleLLMEnd: async (output) => {
239
+ handleLLMEnd: (output) => {
237
240
  console.log(output);
238
241
  const usage = output?.llmOutput?.tokenUsage;
239
242
  tokenUsages.push(ChainStore.getTokenUsage(chain._chainType(), chain.getModelName(), usage));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",