@cellaware/utils 2.0.0 → 2.0.1

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.
@@ -19,7 +19,7 @@ export declare class SingleActionChain extends BaseChain {
19
19
  getModelName(): ModelName;
20
20
  getPrompt(): string;
21
21
  }
22
- export declare function createSingleActionChain(name: string, modelName: string, inputKeys: string[], prompt: string, temperature?: number, verbose?: boolean): SingleActionChain;
22
+ export declare function createSingleActionChain(name: string, modelName: ModelName, inputKeys: string[], prompt: string, temperature?: number, verbose?: boolean): SingleActionChain;
23
23
  /**
24
24
  * A `ChainStore` is a chain registry and calling interface. The `ChainStore`
25
25
  * keeps a map of all registered chains.
@@ -31,11 +31,11 @@ export declare function createSingleActionChain(name: string, modelName: string,
31
31
  export declare class ChainStore {
32
32
  private promptsPath;
33
33
  private chains;
34
- constructor(promptsPath: string, defaultModelName?: string);
34
+ constructor(promptsPath: string, defaultModelName?: ModelName);
35
35
  private initBuiltinChains;
36
36
  private static getTokenUsage;
37
37
  private getPrompt;
38
- addChain(name: string, modelName: string, temperature?: number, verbose?: boolean): void;
38
+ addChain(name: string, modelName: ModelName, temperature?: number, verbose?: boolean): void;
39
39
  addExistingChain(chain: SingleActionChain): void;
40
40
  callChain(name: string, args: any, tokenUsages: any[]): Promise<import("langchain/dist/schema/index.js").ChainValues>;
41
41
  translate(statement: string, language: string, tokenUsages?: any[]): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",