@intelliweave/embedded 2.0.72-beta.9 → 2.1.73
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 +37 -3
- package/dist/component/component.js +65 -65
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +37 -3
- package/dist/node/node.js +25 -25
- package/dist/react/react.d.ts +37 -3
- package/dist/react/react.js +24 -24
- package/dist/script-tag/script-tag.js +65 -65
- package/dist/webpack/index.d.ts +61 -4
- package/dist/webpack/index.js +25 -25
- package/package.json +1 -1
|
@@ -60,6 +60,8 @@ declare class TokenWindowGroup<DataType> {
|
|
|
60
60
|
recalculateTokens(): void;
|
|
61
61
|
/** Add an item to the group */
|
|
62
62
|
add(item: string | TokenWindowGroupItemParams<DataType>): TokenWindowGroupItem<DataType>;
|
|
63
|
+
/** Manually remove an item */
|
|
64
|
+
remove(itemId: string): boolean;
|
|
63
65
|
/** Get all items as a string */
|
|
64
66
|
getAllAsString(): string;
|
|
65
67
|
/** Get all items. Doesn't return disabled items. */
|
|
@@ -461,6 +463,8 @@ declare class KnowledgeBase {
|
|
|
461
463
|
allowWindowSources: boolean;
|
|
462
464
|
/** If true, allows using knowledge specified in the global configuration object */
|
|
463
465
|
allowGlobalConfigSources: boolean;
|
|
466
|
+
/** If true, allows the AI to search the knowledge base. If false, essentially disables RAG lookup. */
|
|
467
|
+
allowRagSearch: boolean;
|
|
464
468
|
/** Constructor */
|
|
465
469
|
constructor(ai: IntelliWeave);
|
|
466
470
|
/** Ensures the internal knowledge is set correctly */
|
|
@@ -489,7 +493,7 @@ declare class KnowledgeBase {
|
|
|
489
493
|
/** Create and register an external knowledge base source from a URL */
|
|
490
494
|
registerSourceFromURL(url: string, id?: string): void;
|
|
491
495
|
/** Clone this instance */
|
|
492
|
-
clone(): KnowledgeBase;
|
|
496
|
+
clone(newIW: IntelliWeave): KnowledgeBase;
|
|
493
497
|
/** Registers an MCP server as a knowledge base source */
|
|
494
498
|
registerMCPSource(config: MCPKnowledgeClient['config']): MCPKnowledgeClient;
|
|
495
499
|
}
|
|
@@ -757,7 +761,7 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
757
761
|
static debugExportWav: boolean;
|
|
758
762
|
/** Server address for transcription */
|
|
759
763
|
apiAddress: string;
|
|
760
|
-
/**
|
|
764
|
+
/** IntelliWeave API key */
|
|
761
765
|
apiKey: string;
|
|
762
766
|
/** WebSocket connection */
|
|
763
767
|
private ws?;
|
|
@@ -777,6 +781,32 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
777
781
|
onSocketClose(): void;
|
|
778
782
|
}
|
|
779
783
|
|
|
784
|
+
/**
|
|
785
|
+
* This AudioNode uses ElevenLabs to transcribe spoken speech to text.
|
|
786
|
+
*
|
|
787
|
+
* - event `transcription` - Fired when a transcription is ready. `text` contains the transcribed text.
|
|
788
|
+
*/
|
|
789
|
+
declare class ElevenLabsTranscriptionNode extends VoiceChunkOutputNode {
|
|
790
|
+
/** ElevenLabs API key */
|
|
791
|
+
apiKey: string;
|
|
792
|
+
/** ElevenLabs stream connection */
|
|
793
|
+
private connection?;
|
|
794
|
+
/** True if currently transcribing */
|
|
795
|
+
isTranscribing: boolean;
|
|
796
|
+
/** WebSocket shutdown timer */
|
|
797
|
+
private shutdownTimer?;
|
|
798
|
+
/** Constructor */
|
|
799
|
+
constructor(audioContext: AudioContext, apiKey: string);
|
|
800
|
+
/** Called when a voice chunk is received */
|
|
801
|
+
onVoiceChunk(buffer: Float32Array): Promise<void>;
|
|
802
|
+
/** Start reading the stream */
|
|
803
|
+
private startReading;
|
|
804
|
+
/** Called when the voice recording ends */
|
|
805
|
+
onVoiceEnd(buffers: Float32Array[]): Promise<void>;
|
|
806
|
+
/** Called when a transcription is ready */
|
|
807
|
+
onVoiceTranscription(text: string): void;
|
|
808
|
+
}
|
|
809
|
+
|
|
780
810
|
/**
|
|
781
811
|
* Handles speech recognition from the microphone
|
|
782
812
|
*
|
|
@@ -802,7 +832,7 @@ declare class WebWeaverSpeechRecognition extends EventTarget {
|
|
|
802
832
|
/** Returns true if speech recognition is supported by this persona and browser */
|
|
803
833
|
get isSupported(): boolean;
|
|
804
834
|
/** Currently active voice detection node */
|
|
805
|
-
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode;
|
|
835
|
+
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode | ElevenLabsTranscriptionNode;
|
|
806
836
|
/** Constructor */
|
|
807
837
|
constructor(ai: IntelliWeave);
|
|
808
838
|
private _skipEvents;
|
|
@@ -1053,6 +1083,8 @@ interface SubAgentConfig {
|
|
|
1053
1083
|
usageInstructions?: string;
|
|
1054
1084
|
/** If true, will remove all Persona knowledge entries */
|
|
1055
1085
|
clearExistingKnowledge?: boolean;
|
|
1086
|
+
/** Disable RAG search for subagents. If true, only KB entries with isContext=true will be used. */
|
|
1087
|
+
disableRagSearch?: boolean;
|
|
1056
1088
|
/** Extra knowledge base sources for the sub-agent */
|
|
1057
1089
|
knowledge?: KnowledgeFetcher;
|
|
1058
1090
|
/** Optional extra configuration for the subagent instance */
|
|
@@ -1218,6 +1250,8 @@ declare class IntelliWeave extends EventTarget {
|
|
|
1218
1250
|
private _lastSystemMsg;
|
|
1219
1251
|
/** Get the system message prefix, before the KB entries are added */
|
|
1220
1252
|
getContextPrefix(): Promise<string>;
|
|
1253
|
+
/** KB items added in the last run */
|
|
1254
|
+
private lastKBItems;
|
|
1221
1255
|
/** Get system message to send to the AI */
|
|
1222
1256
|
onBeforeMessageProcessing(): Promise<void>;
|
|
1223
1257
|
/** @private Process incoming message(s) from the AI. Can be used to respond to encoded actions in the text response. */
|