@icanbwell/baileyai-chat-ui 1.0.4 → 1.0.5
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/baileyai-chat-ui.cjs +6 -6
- package/dist/baileyai-chat-ui.js +269 -256
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -359,7 +359,16 @@ export declare interface CopyMarkdownButtonProps {
|
|
|
359
359
|
|
|
360
360
|
export declare function createBaileyMarkdownComponents({ renderTable, renderChart }?: BaileyMarkdownRenderers): Components;
|
|
361
361
|
|
|
362
|
-
export declare function extractPseudoToolCalls(text: string): ExtractPseudoToolCallsResult;
|
|
362
|
+
export declare function extractPseudoToolCalls(text: string, options?: ExtractPseudoToolCallsOptions): ExtractPseudoToolCallsResult;
|
|
363
|
+
|
|
364
|
+
declare interface ExtractPseudoToolCallsOptions {
|
|
365
|
+
/** Hide a still-open (unclosed) recognized tag from cleanedText, the same as a completed
|
|
366
|
+
* block. Defaults to true for mid-stream calls, where the tag is expected to close on a later
|
|
367
|
+
* delta. Pass false once the stream has ended (no later delta is coming) so a tag that never
|
|
368
|
+
* closed - a truncated response, or a malformed tag - stays visible instead of being silently
|
|
369
|
+
* and permanently swallowed. */
|
|
370
|
+
hideOpenBlock?: boolean;
|
|
371
|
+
}
|
|
363
372
|
|
|
364
373
|
declare interface ExtractPseudoToolCallsResult {
|
|
365
374
|
/** `text` with every matched block removed. */
|