@intelliweave/embedded 2.0.72-beta.7 → 2.0.72-beta.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.
@@ -118,6 +118,8 @@ interface TokenWindowGroupItem<DataType> {
118
118
  /** Total token usage */
119
119
  totalTokens: number;
120
120
  };
121
+ /** True if this item is still being streamed */
122
+ streamingInProgress?: boolean;
121
123
  }
122
124
  /** A section of a message returned by the AI */
123
125
  interface TokenWindowGroupItemSection {
@@ -584,10 +586,16 @@ type KnowledgeBaseActionParameterSchema = JSONSchema7 | IntelliWeaveParameterDef
584
586
  declare class WebWeaverSpeechOutput extends EventTarget {
585
587
  /** Reference to the AI */
586
588
  private ai?;
589
+ /** Automatically speak output from the AI */
590
+ autoSpeak: boolean;
591
+ /** If enabled, connections will be pre-emptively opened to speed up text-to-speech response times, if possible */
592
+ preemptiveConnection: boolean;
587
593
  /** Constructor */
588
594
  constructor(ai: IntelliWeave);
589
- /** Called when the AI speaks */
590
- onTextOutputFromAI(e: CustomEvent): void;
595
+ /** Message IDs we've processed */
596
+ private processedMessages;
597
+ /** Called when the AI responds */
598
+ onOutputFromAI(e: CustomEvent): void;
591
599
  /** Current player vars */
592
600
  private currentPlayerVolume?;
593
601
  private currentPlayer?;
@@ -599,8 +607,15 @@ declare class WebWeaverSpeechOutput extends EventTarget {
599
607
  private maxVolumeHeard;
600
608
  /** Get current (realtime) audio output volume level, from 0 to 1 */
601
609
  get volumeLevel(): number;
610
+ /** Queued messages to speak next */
611
+ private _queuedText;
602
612
  /** Speak the text */
603
613
  speak(text: string): Promise<void>;
614
+ private _queueActive;
615
+ _runQueue(): Promise<void>;
616
+ /** ElevenLabs connection pre-cache */
617
+ private _elevenLabsPrecachedConnection?;
618
+ private _getElevenLabsConnection;
604
619
  private _speakWithLock;
605
620
  /** True if currently playing audio */
606
621
  get isSpeaking(): boolean;