@xpert-ai/chatkit-types 0.5.6 → 0.5.8
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/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -620,6 +620,12 @@ export declare type ChatKitOptions = {
|
|
|
620
620
|
*/
|
|
621
621
|
projects?: {
|
|
622
622
|
enabled?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* Allow the user to request Project creation from the selector.
|
|
625
|
+
* Defaults to true when Project selection is enabled. Set this to false
|
|
626
|
+
* when the host only supports selecting existing Projects.
|
|
627
|
+
*/
|
|
628
|
+
createEnabled?: boolean;
|
|
623
629
|
/**
|
|
624
630
|
* Show the configured Project as a fixed composer scope instead of a
|
|
625
631
|
* selector. Intended for Project-owned workbenches where the host pins
|
|
@@ -1199,6 +1205,9 @@ export declare type Col = {
|
|
|
1199
1205
|
|
|
1200
1206
|
export declare type ColorScheme = 'light' | 'dark';
|
|
1201
1207
|
|
|
1208
|
+
/** Reason codes emitted by context-compression events. */
|
|
1209
|
+
export declare type ContextCompressionReason = 'no_messages' | 'no_unprotected_history' | 'no_token_gain' | 'summary_invalid' | 'summary_input_budget' | 'summary_output_budget' | 'summary_work_limit' | 'summary_constraints_lost' | 'summary_service_error' | 'retry_deferred' | 'context_budget_exceeded' | 'context_validation_failed';
|
|
1210
|
+
|
|
1202
1211
|
declare type ControlSize = '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
1203
1212
|
|
|
1204
1213
|
declare type ControlVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
@@ -2541,6 +2550,11 @@ export declare type TThreadContextUsageEvent = {
|
|
|
2541
2550
|
agentKey: string;
|
|
2542
2551
|
updatedAt: string;
|
|
2543
2552
|
usage: TThreadContextUsageMetrics;
|
|
2553
|
+
/** Window of the model used by this execution, including fallback models. */
|
|
2554
|
+
effectiveModel?: {
|
|
2555
|
+
model?: string;
|
|
2556
|
+
contextWindow: number;
|
|
2557
|
+
};
|
|
2544
2558
|
};
|
|
2545
2559
|
|
|
2546
2560
|
export declare type TThreadContextUsageMetrics = {
|