@sprucelabs/sprucebot-llm 14.1.1 → 14.2.0
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.
|
@@ -7,6 +7,9 @@ export default class MockAdapterLoader {
|
|
|
7
7
|
static assertWasCreated() {
|
|
8
8
|
assert.isTruthy(this.instance, 'Did not create an instance of LlmAdapterLoader using LllmAdapterLoaderImpl.Loader()');
|
|
9
9
|
}
|
|
10
|
+
static assertWasNotCreated() {
|
|
11
|
+
assert.isFalsy(this.instance, 'Expected not to have created an instance of LlmAdapterLoader');
|
|
12
|
+
}
|
|
10
13
|
Adapter() {
|
|
11
14
|
this.lastAdapter = new SpyLlmAdapter('***');
|
|
12
15
|
return this.lastAdapter;
|
|
@@ -12,6 +12,9 @@ class MockAdapterLoader {
|
|
|
12
12
|
static assertWasCreated() {
|
|
13
13
|
test_utils_1.assert.isTruthy(this.instance, 'Did not create an instance of LlmAdapterLoader using LllmAdapterLoaderImpl.Loader()');
|
|
14
14
|
}
|
|
15
|
+
static assertWasNotCreated() {
|
|
16
|
+
test_utils_1.assert.isFalsy(this.instance, 'Expected not to have created an instance of LlmAdapterLoader');
|
|
17
|
+
}
|
|
15
18
|
Adapter() {
|
|
16
19
|
this.lastAdapter = new SpyAdapter_1.default('***');
|
|
17
20
|
return this.lastAdapter;
|