@intelliweave/embedded 1.6.50 → 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.
- package/dist/component/component.d.ts +6 -4
- package/dist/component/component.js +50 -25
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +13 -5
- package/dist/node/node.js +13 -13
- package/dist/react/react.d.ts +6 -4
- package/dist/react/react.js +51 -26
- package/dist/script-tag/script-tag.js +57 -32
- package/dist/webpack/index.d.ts +13 -5
- package/dist/webpack/index.js +53 -28
- package/package.json +1 -1
|
@@ -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
|
-
/**
|
|
535
|
-
private
|
|
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;
|