cheshirecat-typescript-client 1.8.0 → 1.8.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.
@@ -1,11 +1,5 @@
1
- import { Memory, MemoryPoint } from "../types";
1
+ import { MemoryPoint } from "../types";
2
2
  import { BaseBuilder } from "./types";
3
- export declare class MemoryBuilder implements BaseBuilder {
4
- private declarative;
5
- static create(): MemoryBuilder;
6
- setDeclarative(declarative?: Record<string, any>[] | null): MemoryBuilder;
7
- build(): Memory;
8
- }
9
3
  export declare class MemoryPointBuilder implements BaseBuilder {
10
4
  private content;
11
5
  private metadata;
@@ -1,22 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemoryPointBuilder = exports.MemoryBuilder = void 0;
4
- class MemoryBuilder {
5
- declarative = [];
6
- static create() {
7
- return new MemoryBuilder();
8
- }
9
- setDeclarative(declarative) {
10
- this.declarative = declarative ?? [];
11
- return this;
12
- }
13
- build() {
14
- return {
15
- declarative: this.declarative,
16
- };
17
- }
18
- }
19
- exports.MemoryBuilder = MemoryBuilder;
3
+ exports.MemoryPointBuilder = void 0;
20
4
  class MemoryPointBuilder {
21
5
  content;
22
6
  metadata;
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/builders/memory.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IACd,WAAW,GAA0B,EAAE,CAAC;IAEzC,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,aAAa,EAAE,CAAC;IAC/B,CAAC;IAEM,cAAc,CAAC,WAA0C;QAC5D,IAAI,CAAC,WAAW,GAAG,WAAW,IAAI,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK;QACR,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;SAChC,CAAC;IACN,CAAC;CACJ;AAjBD,sCAiBC;AAED,MAAa,kBAAkB;IACnB,OAAO,CAAU;IACjB,QAAQ,CAAuB;IAEhC,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,kBAAkB,EAAE,CAAC;IACpC,CAAC;IAEM,UAAU,CAAC,OAAe;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,WAAW,CAAC,QAA6B;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK;QACR,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;IACN,CAAC;CACJ;AAxBD,gDAwBC"}
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/builders/memory.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IACnB,OAAO,CAAU;IACjB,QAAQ,CAAuB;IAEhC,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,kBAAkB,EAAE,CAAC;IACpC,CAAC;IAEM,UAAU,CAAC,OAAe;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,WAAW,CAAC,QAA6B;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK;QACR,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;IACN,CAAC;CACJ;AAxBD,gDAwBC"}
@@ -1,12 +1,12 @@
1
1
  import { BaseBuilder } from "./types";
2
- import { Memory, Why } from "../types";
2
+ import { Why } from "../types";
3
3
  export declare class WhyBuilder implements BaseBuilder {
4
4
  private input?;
5
5
  private intermediateSteps?;
6
- private memory;
6
+ private memory?;
7
7
  static create(): WhyBuilder;
8
8
  setInput(input?: string): WhyBuilder;
9
9
  setIntermediateSteps(intermediateSteps?: Record<string, any>[]): WhyBuilder;
10
- setMemory(memory: Memory): WhyBuilder;
10
+ setMemory(memory?: Record<string, any>[]): WhyBuilder;
11
11
  build(): Why;
12
12
  }
@@ -4,7 +4,7 @@ exports.WhyBuilder = void 0;
4
4
  class WhyBuilder {
5
5
  input;
6
6
  intermediateSteps = [];
7
- memory;
7
+ memory = [];
8
8
  static create() {
9
9
  return new WhyBuilder();
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"why.js","sourceRoot":"","sources":["../../src/builders/why.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACX,KAAK,CAAU;IACf,iBAAiB,GAA2B,EAAE,CAAC;IAC/C,MAAM,CAAU;IAEjB,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,UAAU,EAAE,CAAC;IAC5B,CAAC;IAEM,QAAQ,CAAC,KAAc;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oBAAoB,CAAC,iBAAyC;QACjE,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,IAAI,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,SAAS,CAAC,MAAc;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK;QACR,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;IACN,CAAC;CACJ;AA/BD,gCA+BC"}
1
+ {"version":3,"file":"why.js","sourceRoot":"","sources":["../../src/builders/why.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IACX,KAAK,CAAU;IACf,iBAAiB,GAA2B,EAAE,CAAC;IAC/C,MAAM,GAA2B,EAAE,CAAC;IAErC,MAAM,CAAC,MAAM;QAChB,OAAO,IAAI,UAAU,EAAE,CAAC;IAC5B,CAAC;IAEM,QAAQ,CAAC,KAAc;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oBAAoB,CAAC,iBAAyC;QACjE,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,IAAI,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,SAAS,CAAC,MAA8B;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,KAAK;QACR,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;IACN,CAAC;CACJ;AA/BD,gCA+BC"}
package/dist/types.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- export interface Memory {
2
- declarative: Record<string, any>[];
3
- }
4
1
  export interface MemoryPoint {
5
2
  content: string;
6
3
  metadata: Record<string, any>;
@@ -13,6 +10,6 @@ export interface SettingInput {
13
10
  export interface Why {
14
11
  input?: string | null;
15
12
  intermediateSteps?: Record<string, any>[];
16
- memory: Memory;
13
+ memory?: Record<string, any>[];
17
14
  }
18
15
  export type Role = "user" | "assistant";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cheshirecat-typescript-client",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "engines": {
5
5
  "node": "22.x"
6
6
  },