@burtson-labs/bandit-engine 2.0.51 → 2.0.53
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.
- package/dist/{aiProviderStore-3N3VE6D4.mjs → aiProviderStore-337QNQB3.mjs} +2 -2
- package/dist/{chat-W5IFNEUC.mjs → chat-U4SE4JQK.mjs} +6 -6
- package/dist/chat-provider.js +242 -17
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +4 -4
- package/dist/{chunk-LXD3IV6Z.mjs → chunk-2BGORTWS.mjs} +4 -4
- package/dist/{chunk-IDH2YOW3.mjs → chunk-557E5VZ2.mjs} +198 -11
- package/dist/chunk-557E5VZ2.mjs.map +1 -0
- package/dist/{chunk-QFSEZAG6.mjs → chunk-AVV7HDGR.mjs} +34 -3
- package/dist/chunk-AVV7HDGR.mjs.map +1 -0
- package/dist/{chunk-N7RMUOFB.mjs → chunk-EULV5CHD.mjs} +2 -2
- package/dist/{chunk-STMXPFAQ.mjs → chunk-GNE4TTSI.mjs} +48 -15
- package/dist/chunk-GNE4TTSI.mjs.map +1 -0
- package/dist/{chunk-BENL3EF2.mjs → chunk-H3BYFEIE.mjs} +18 -10
- package/dist/chunk-H3BYFEIE.mjs.map +1 -0
- package/dist/{chunk-HETIHZ42.mjs → chunk-NZKLKZJT.mjs} +3 -3
- package/dist/{chunk-JBXNXSAH.mjs → chunk-O54PTFJM.mjs} +460 -181
- package/dist/chunk-O54PTFJM.mjs.map +1 -0
- package/dist/{chunk-EWUUF4GE.mjs → chunk-UFSEYVRS.mjs} +3 -3
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/{gateway-oScD5tvE.d.ts → gateway-C5T5FfCy.d.mts} +32 -0
- package/dist/{gateway-oScD5tvE.d.mts → gateway-C5T5FfCy.d.ts} +32 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +738 -202
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/management/management.js +708 -202
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +7 -7
- package/dist/modals/chat-modal/chat-modal.js +214 -17
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +4 -4
- package/dist/public-types.d.mts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-BENL3EF2.mjs.map +0 -1
- package/dist/chunk-IDH2YOW3.mjs.map +0 -1
- package/dist/chunk-JBXNXSAH.mjs.map +0 -1
- package/dist/chunk-QFSEZAG6.mjs.map +0 -1
- package/dist/chunk-STMXPFAQ.mjs.map +0 -1
- /package/dist/{aiProviderStore-3N3VE6D4.mjs.map → aiProviderStore-337QNQB3.mjs.map} +0 -0
- /package/dist/{chat-W5IFNEUC.mjs.map → chat-U4SE4JQK.mjs.map} +0 -0
- /package/dist/{chunk-LXD3IV6Z.mjs.map → chunk-2BGORTWS.mjs.map} +0 -0
- /package/dist/{chunk-N7RMUOFB.mjs.map → chunk-EULV5CHD.mjs.map} +0 -0
- /package/dist/{chunk-HETIHZ42.mjs.map → chunk-NZKLKZJT.mjs.map} +0 -0
- /package/dist/{chunk-EWUUF4GE.mjs.map → chunk-UFSEYVRS.mjs.map} +0 -0
|
@@ -16,10 +16,19 @@ interface AIChatRequest {
|
|
|
16
16
|
images?: string[];
|
|
17
17
|
options?: Record<string, unknown>;
|
|
18
18
|
}
|
|
19
|
+
interface AIToolCall {
|
|
20
|
+
id?: string;
|
|
21
|
+
type?: 'function';
|
|
22
|
+
function: {
|
|
23
|
+
name: string;
|
|
24
|
+
arguments: string | Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
19
27
|
interface AIChatResponse {
|
|
20
28
|
message: {
|
|
21
29
|
content: string;
|
|
22
30
|
role: 'assistant';
|
|
31
|
+
tool_calls?: AIToolCall[];
|
|
23
32
|
};
|
|
24
33
|
done?: boolean;
|
|
25
34
|
}
|
|
@@ -208,6 +217,18 @@ interface GatewayMessage {
|
|
|
208
217
|
name?: string;
|
|
209
218
|
images?: string[];
|
|
210
219
|
}
|
|
220
|
+
interface GatewayTool {
|
|
221
|
+
type: 'function';
|
|
222
|
+
function: {
|
|
223
|
+
name: string;
|
|
224
|
+
description?: string;
|
|
225
|
+
parameters?: {
|
|
226
|
+
type: string;
|
|
227
|
+
properties?: Record<string, unknown>;
|
|
228
|
+
required?: string[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}
|
|
211
232
|
interface GatewayChatRequest {
|
|
212
233
|
model: string;
|
|
213
234
|
messages: GatewayMessage[];
|
|
@@ -220,6 +241,15 @@ interface GatewayChatRequest {
|
|
|
220
241
|
provider?: 'openai' | 'azure-openai' | 'anthropic' | 'ollama' | 'xai' | 'bandit' | 'playground';
|
|
221
242
|
stop?: string | string[];
|
|
222
243
|
images?: string[];
|
|
244
|
+
tools?: GatewayTool[];
|
|
245
|
+
}
|
|
246
|
+
interface GatewayToolCall {
|
|
247
|
+
id?: string;
|
|
248
|
+
type?: 'function';
|
|
249
|
+
function: {
|
|
250
|
+
name: string;
|
|
251
|
+
arguments: string | Record<string, unknown>;
|
|
252
|
+
};
|
|
223
253
|
}
|
|
224
254
|
interface GatewayChatResponse {
|
|
225
255
|
id: string;
|
|
@@ -231,10 +261,12 @@ interface GatewayChatResponse {
|
|
|
231
261
|
delta?: {
|
|
232
262
|
role?: string;
|
|
233
263
|
content?: string;
|
|
264
|
+
tool_calls?: GatewayToolCall[];
|
|
234
265
|
};
|
|
235
266
|
message?: {
|
|
236
267
|
role: string;
|
|
237
268
|
content: string;
|
|
269
|
+
tool_calls?: GatewayToolCall[];
|
|
238
270
|
};
|
|
239
271
|
finish_reason?: string | null;
|
|
240
272
|
}[];
|
|
@@ -16,10 +16,19 @@ interface AIChatRequest {
|
|
|
16
16
|
images?: string[];
|
|
17
17
|
options?: Record<string, unknown>;
|
|
18
18
|
}
|
|
19
|
+
interface AIToolCall {
|
|
20
|
+
id?: string;
|
|
21
|
+
type?: 'function';
|
|
22
|
+
function: {
|
|
23
|
+
name: string;
|
|
24
|
+
arguments: string | Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
19
27
|
interface AIChatResponse {
|
|
20
28
|
message: {
|
|
21
29
|
content: string;
|
|
22
30
|
role: 'assistant';
|
|
31
|
+
tool_calls?: AIToolCall[];
|
|
23
32
|
};
|
|
24
33
|
done?: boolean;
|
|
25
34
|
}
|
|
@@ -208,6 +217,18 @@ interface GatewayMessage {
|
|
|
208
217
|
name?: string;
|
|
209
218
|
images?: string[];
|
|
210
219
|
}
|
|
220
|
+
interface GatewayTool {
|
|
221
|
+
type: 'function';
|
|
222
|
+
function: {
|
|
223
|
+
name: string;
|
|
224
|
+
description?: string;
|
|
225
|
+
parameters?: {
|
|
226
|
+
type: string;
|
|
227
|
+
properties?: Record<string, unknown>;
|
|
228
|
+
required?: string[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}
|
|
211
232
|
interface GatewayChatRequest {
|
|
212
233
|
model: string;
|
|
213
234
|
messages: GatewayMessage[];
|
|
@@ -220,6 +241,15 @@ interface GatewayChatRequest {
|
|
|
220
241
|
provider?: 'openai' | 'azure-openai' | 'anthropic' | 'ollama' | 'xai' | 'bandit' | 'playground';
|
|
221
242
|
stop?: string | string[];
|
|
222
243
|
images?: string[];
|
|
244
|
+
tools?: GatewayTool[];
|
|
245
|
+
}
|
|
246
|
+
interface GatewayToolCall {
|
|
247
|
+
id?: string;
|
|
248
|
+
type?: 'function';
|
|
249
|
+
function: {
|
|
250
|
+
name: string;
|
|
251
|
+
arguments: string | Record<string, unknown>;
|
|
252
|
+
};
|
|
223
253
|
}
|
|
224
254
|
interface GatewayChatResponse {
|
|
225
255
|
id: string;
|
|
@@ -231,10 +261,12 @@ interface GatewayChatResponse {
|
|
|
231
261
|
delta?: {
|
|
232
262
|
role?: string;
|
|
233
263
|
content?: string;
|
|
264
|
+
tool_calls?: GatewayToolCall[];
|
|
234
265
|
};
|
|
235
266
|
message?: {
|
|
236
267
|
role: string;
|
|
237
268
|
content: string;
|
|
269
|
+
tool_calls?: GatewayToolCall[];
|
|
238
270
|
};
|
|
239
271
|
finish_reason?: string | null;
|
|
240
272
|
}[];
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FeatureFlagConfig, a as FeatureKey, b as FeatureEvaluation, S as SubscriptionTier, T as TrialUsage, G as GatewayHealthResponse, c as GatewayModel, d as GatewayMemoryResponse } from './gateway-
|
|
2
|
-
export { t as AIChatRequest, u as AIChatResponse, w as AIGenerateRequest, x as AIGenerateResponse, y as AIMessage, s as AIModel, A as AIProviderConfig, g as ChatConfig, e as ChatModal, h as ChatModalProps, C as ChatProvider, D as DEFAULT_TIER_FEATURES, f as FeatureMatrix, m as GatewayChatRequest, n as GatewayChatResponse, j as GatewayContract, o as GatewayGenerateRequest, p as GatewayGenerateResponse, r as GatewayMemoryRecord, l as GatewayMessage, k as GatewayMessageContent, q as GatewayModelsResponse, O as OSS_DEFAULT_FEATURES, P as PackageSettings, i as VoiceModelsResponse, V as VoiceService, v as voiceService } from './gateway-
|
|
1
|
+
import { F as FeatureFlagConfig, a as FeatureKey, b as FeatureEvaluation, S as SubscriptionTier, T as TrialUsage, G as GatewayHealthResponse, c as GatewayModel, d as GatewayMemoryResponse } from './gateway-C5T5FfCy.mjs';
|
|
2
|
+
export { t as AIChatRequest, u as AIChatResponse, w as AIGenerateRequest, x as AIGenerateResponse, y as AIMessage, s as AIModel, A as AIProviderConfig, g as ChatConfig, e as ChatModal, h as ChatModalProps, C as ChatProvider, D as DEFAULT_TIER_FEATURES, f as FeatureMatrix, m as GatewayChatRequest, n as GatewayChatResponse, j as GatewayContract, o as GatewayGenerateRequest, p as GatewayGenerateResponse, r as GatewayMemoryRecord, l as GatewayMessage, k as GatewayMessageContent, q as GatewayModelsResponse, O as OSS_DEFAULT_FEATURES, P as PackageSettings, i as VoiceModelsResponse, V as VoiceService, v as voiceService } from './gateway-C5T5FfCy.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import * as zustand from 'zustand';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FeatureFlagConfig, a as FeatureKey, b as FeatureEvaluation, S as SubscriptionTier, T as TrialUsage, G as GatewayHealthResponse, c as GatewayModel, d as GatewayMemoryResponse } from './gateway-
|
|
2
|
-
export { t as AIChatRequest, u as AIChatResponse, w as AIGenerateRequest, x as AIGenerateResponse, y as AIMessage, s as AIModel, A as AIProviderConfig, g as ChatConfig, e as ChatModal, h as ChatModalProps, C as ChatProvider, D as DEFAULT_TIER_FEATURES, f as FeatureMatrix, m as GatewayChatRequest, n as GatewayChatResponse, j as GatewayContract, o as GatewayGenerateRequest, p as GatewayGenerateResponse, r as GatewayMemoryRecord, l as GatewayMessage, k as GatewayMessageContent, q as GatewayModelsResponse, O as OSS_DEFAULT_FEATURES, P as PackageSettings, i as VoiceModelsResponse, V as VoiceService, v as voiceService } from './gateway-
|
|
1
|
+
import { F as FeatureFlagConfig, a as FeatureKey, b as FeatureEvaluation, S as SubscriptionTier, T as TrialUsage, G as GatewayHealthResponse, c as GatewayModel, d as GatewayMemoryResponse } from './gateway-C5T5FfCy.js';
|
|
2
|
+
export { t as AIChatRequest, u as AIChatResponse, w as AIGenerateRequest, x as AIGenerateResponse, y as AIMessage, s as AIModel, A as AIProviderConfig, g as ChatConfig, e as ChatModal, h as ChatModalProps, C as ChatProvider, D as DEFAULT_TIER_FEATURES, f as FeatureMatrix, m as GatewayChatRequest, n as GatewayChatResponse, j as GatewayContract, o as GatewayGenerateRequest, p as GatewayGenerateResponse, r as GatewayMemoryRecord, l as GatewayMessage, k as GatewayMessageContent, q as GatewayModelsResponse, O as OSS_DEFAULT_FEATURES, P as PackageSettings, i as VoiceModelsResponse, V as VoiceService, v as voiceService } from './gateway-C5T5FfCy.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import * as zustand from 'zustand';
|