@sprucelabs/sprucebot-llm 2.4.0 → 2.4.2

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,9 +1,9 @@
1
1
  import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter';
2
2
  import { Schema, SchemaValues } from '@sprucelabs/schema';
3
- import { BotOptions, LlmEventContract, LlmMessage, SerializedBot, SprucebotLlmBot, SprucebotLLmSkill } from '../llm.types';
3
+ import { BotOptions, LlmAdapter, LlmEventContract, LlmMessage, SerializedBot, SprucebotLlmBot, SprucebotLLmSkill } from '../llm.types';
4
4
  export default class SprucebotLlmBotImpl<StateSchema extends Schema = Schema, State extends SchemaValues<StateSchema> = SchemaValues<StateSchema>> extends AbstractEventEmitter<LlmEventContract> implements SprucebotLlmBot<StateSchema, State> {
5
5
  static messageMemoryLimit: number;
6
- private adapter;
6
+ protected adapter: LlmAdapter;
7
7
  private youAre;
8
8
  private stateSchema?;
9
9
  protected state?: Partial<State>;
@@ -73,6 +73,7 @@ class SprucebotLlmBotImpl extends mercury_event_emitter_1.AbstractEventEmitter {
73
73
  }
74
74
  setSkill(skill) {
75
75
  this.skill = skill;
76
+ this.isDone = false;
76
77
  }
77
78
  }
78
79
  SprucebotLlmBotImpl.messageMemoryLimit = 10;
@@ -1,9 +1,9 @@
1
1
  import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter';
2
2
  import { Schema, SchemaValues } from '@sprucelabs/schema';
3
- import { BotOptions, LlmEventContract, LlmMessage, SerializedBot, SprucebotLlmBot, SprucebotLLmSkill } from '../llm.types';
3
+ import { BotOptions, LlmAdapter, LlmEventContract, LlmMessage, SerializedBot, SprucebotLlmBot, SprucebotLLmSkill } from '../llm.types';
4
4
  export default class SprucebotLlmBotImpl<StateSchema extends Schema = Schema, State extends SchemaValues<StateSchema> = SchemaValues<StateSchema>> extends AbstractEventEmitter<LlmEventContract> implements SprucebotLlmBot<StateSchema, State> {
5
5
  static messageMemoryLimit: number;
6
- private adapter;
6
+ protected adapter: LlmAdapter;
7
7
  private youAre;
8
8
  private stateSchema?;
9
9
  protected state?: Partial<State>;
@@ -81,6 +81,7 @@ class SprucebotLlmBotImpl extends AbstractEventEmitter {
81
81
  }
82
82
  setSkill(skill) {
83
83
  this.skill = skill;
84
+ this.isDone = false;
84
85
  }
85
86
  }
86
87
  SprucebotLlmBotImpl.messageMemoryLimit = 10;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "@sprucelabs/spruce-test-fixtures"
10
10
  ]
11
11
  },
12
- "version": "2.4.0",
12
+ "version": "2.4.2",
13
13
  "files": [
14
14
  "build"
15
15
  ],