@nebula-ai/sdk 1.1.31 → 1.2.0
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/index.d.mts +13 -6
- package/dist/index.d.ts +13 -6
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -123,11 +123,11 @@ interface ActivatedFacet {
|
|
|
123
123
|
facet_id: string;
|
|
124
124
|
facet_name: string;
|
|
125
125
|
relevance_score: number;
|
|
126
|
-
facts:
|
|
126
|
+
facts: ActivatedSemantic[];
|
|
127
127
|
coherence_score?: number;
|
|
128
128
|
is_noise: boolean;
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
130
|
+
interface ActivatedSemantic {
|
|
131
131
|
id?: string;
|
|
132
132
|
category?: string;
|
|
133
133
|
description?: string;
|
|
@@ -168,16 +168,23 @@ interface ActivatedEpisode {
|
|
|
168
168
|
t_start?: number;
|
|
169
169
|
t_last?: number;
|
|
170
170
|
n_facts?: number;
|
|
171
|
-
|
|
171
|
+
member_semantic_ids?: string[];
|
|
172
172
|
source_chunk_ids?: string[];
|
|
173
173
|
entity_names?: string[];
|
|
174
174
|
}
|
|
175
|
+
interface ActivatedProcedure {
|
|
176
|
+
statement: string;
|
|
177
|
+
activation_score: number;
|
|
178
|
+
confidence: number;
|
|
179
|
+
is_negated?: boolean;
|
|
180
|
+
}
|
|
175
181
|
interface MemoryResponse {
|
|
176
182
|
query: string;
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
semantics: ActivatedSemantic[];
|
|
184
|
+
procedures?: ActivatedProcedure[];
|
|
179
185
|
episodes?: ActivatedEpisode[];
|
|
180
186
|
sources: GroundedSource[];
|
|
187
|
+
entities: ActivatedEntity[];
|
|
181
188
|
total_traversal_time_ms?: number;
|
|
182
189
|
token_count?: number;
|
|
183
190
|
}
|
|
@@ -547,4 +554,4 @@ type MemoryFactory = {
|
|
|
547
554
|
declare const Memory: MemoryFactory;
|
|
548
555
|
type Memory = Memory$1;
|
|
549
556
|
|
|
550
|
-
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type
|
|
557
|
+
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type ActivatedProcedure, type ActivatedSemantic, type Chunk, type Collection, type FileContentPart, type GraphCommunityResult, type GraphEntityResult, type GraphRelationshipResult, GraphSearchResultType, type GroundedSource, Memory, type MemoryResponse, type MultimodalContentPart, Nebula, NebulaAuthenticationException, type NebulaClientConfig, NebulaClientException, NebulaCollectionNotFoundException, NebulaContent, NebulaException, NebulaNotFoundException, NebulaRateLimitException, NebulaValidationException, type S3FileReferencePart, type SearchOptions, type SearchResult, type StructuredChunk, type TextContentPart, Nebula as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -123,11 +123,11 @@ interface ActivatedFacet {
|
|
|
123
123
|
facet_id: string;
|
|
124
124
|
facet_name: string;
|
|
125
125
|
relevance_score: number;
|
|
126
|
-
facts:
|
|
126
|
+
facts: ActivatedSemantic[];
|
|
127
127
|
coherence_score?: number;
|
|
128
128
|
is_noise: boolean;
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
130
|
+
interface ActivatedSemantic {
|
|
131
131
|
id?: string;
|
|
132
132
|
category?: string;
|
|
133
133
|
description?: string;
|
|
@@ -168,16 +168,23 @@ interface ActivatedEpisode {
|
|
|
168
168
|
t_start?: number;
|
|
169
169
|
t_last?: number;
|
|
170
170
|
n_facts?: number;
|
|
171
|
-
|
|
171
|
+
member_semantic_ids?: string[];
|
|
172
172
|
source_chunk_ids?: string[];
|
|
173
173
|
entity_names?: string[];
|
|
174
174
|
}
|
|
175
|
+
interface ActivatedProcedure {
|
|
176
|
+
statement: string;
|
|
177
|
+
activation_score: number;
|
|
178
|
+
confidence: number;
|
|
179
|
+
is_negated?: boolean;
|
|
180
|
+
}
|
|
175
181
|
interface MemoryResponse {
|
|
176
182
|
query: string;
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
semantics: ActivatedSemantic[];
|
|
184
|
+
procedures?: ActivatedProcedure[];
|
|
179
185
|
episodes?: ActivatedEpisode[];
|
|
180
186
|
sources: GroundedSource[];
|
|
187
|
+
entities: ActivatedEntity[];
|
|
181
188
|
total_traversal_time_ms?: number;
|
|
182
189
|
token_count?: number;
|
|
183
190
|
}
|
|
@@ -547,4 +554,4 @@ type MemoryFactory = {
|
|
|
547
554
|
declare const Memory: MemoryFactory;
|
|
548
555
|
type Memory = Memory$1;
|
|
549
556
|
|
|
550
|
-
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type
|
|
557
|
+
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type ActivatedProcedure, type ActivatedSemantic, type Chunk, type Collection, type FileContentPart, type GraphCommunityResult, type GraphEntityResult, type GraphRelationshipResult, GraphSearchResultType, type GroundedSource, Memory, type MemoryResponse, type MultimodalContentPart, Nebula, NebulaAuthenticationException, type NebulaClientConfig, NebulaClientException, NebulaCollectionNotFoundException, NebulaContent, NebulaException, NebulaNotFoundException, NebulaRateLimitException, NebulaValidationException, type S3FileReferencePart, type SearchOptions, type SearchResult, type StructuredChunk, type TextContentPart, Nebula as default };
|
package/dist/index.js
CHANGED
|
@@ -848,12 +848,13 @@ var _Nebula = class _Nebula {
|
|
|
848
848
|
const memoryResponseData = response.results;
|
|
849
849
|
const memoryResponse = {
|
|
850
850
|
query: memoryResponseData.query || options.query,
|
|
851
|
-
|
|
852
|
-
|
|
851
|
+
semantics: memoryResponseData.semantics || memoryResponseData.knowledge || [],
|
|
852
|
+
procedures: memoryResponseData.procedures || [],
|
|
853
853
|
episodes: memoryResponseData.episodes || [],
|
|
854
854
|
sources: memoryResponseData.sources || [],
|
|
855
855
|
total_traversal_time_ms: memoryResponseData.total_traversal_time_ms,
|
|
856
|
-
token_count: memoryResponseData.token_count
|
|
856
|
+
token_count: memoryResponseData.token_count,
|
|
857
|
+
entities: memoryResponseData.entities || []
|
|
857
858
|
};
|
|
858
859
|
return memoryResponse;
|
|
859
860
|
}
|