@intelliweave/embedded 1.6.51 → 1.6.52

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.
@@ -145,6 +145,8 @@ interface KnowledgeBaseSource {
145
145
  interface KnowledgeBaseItem {
146
146
  /** Item ID */
147
147
  id?: string;
148
+ /** OpenAI-compatible internal ID. This is set automatically and should not be used. */
149
+ _functionID?: string;
148
150
  /** Item type. */
149
151
  type: 'info' | 'action' | 'tour' | 'input-event' | 'output-event';
150
152
  /** Item name */
@@ -531,8 +533,10 @@ declare class IntelliWeave extends EventTarget {
531
533
  conversationID: string;
532
534
  /** Knowledge database interface */
533
535
  knowledgeBase: KnowledgeBase;
534
- /** Current knowledge base items */
535
- private _lastKBentries;
536
+ /** Last KB search that was performed */
537
+ private _lastKBsearch;
538
+ /** If set, the next time a request is made this is the KB result items that will be used, once-off. */
539
+ private _nextRequestUseKBitems?;
536
540
  /** Config loaded from the API */
537
541
  config?: WebWeaverGPTConfig;
538
542
  /** Available LLMs */
@@ -570,8 +574,6 @@ declare class IntelliWeave extends EventTarget {
570
574
  getContextPrefix(): Promise<any>;
571
575
  /** Get system message to send to the AI */
572
576
  onBeforeMessageProcessing(): Promise<void>;
573
- /** Called to update the current knowledge base items */
574
- updateKnowledgeBase(items: KnowledgeBaseItem[]): void;
575
577
  private _lastOutput?;
576
578
  /** @private Process incoming message from the AI. Can be used to respond to encoded actions in the text response. */
577
579
  processIncomingMessage(message: string, isChunk?: boolean): void;