@nebula-ai/sdk 1.1.28 → 1.1.29
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 +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -123,12 +123,13 @@ interface ActivatedFacet {
|
|
|
123
123
|
facet_id: string;
|
|
124
124
|
facet_name: string;
|
|
125
125
|
relevance_score: number;
|
|
126
|
-
facts:
|
|
126
|
+
facts: ActivatedKnowledge[];
|
|
127
127
|
coherence_score?: number;
|
|
128
128
|
is_noise: boolean;
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
130
|
+
interface ActivatedKnowledge {
|
|
131
131
|
id?: string;
|
|
132
|
+
category?: string;
|
|
132
133
|
entity_id?: string;
|
|
133
134
|
entity_name?: string;
|
|
134
135
|
facet_name?: string;
|
|
@@ -140,6 +141,9 @@ interface ActivatedFact {
|
|
|
140
141
|
corroboration_count?: number;
|
|
141
142
|
confidence?: number;
|
|
142
143
|
source_chunk_ids?: string[];
|
|
144
|
+
reasoning?: string;
|
|
145
|
+
resolved_at?: string;
|
|
146
|
+
source_nodegroup_ids?: string[];
|
|
143
147
|
}
|
|
144
148
|
interface GroundedUtterance {
|
|
145
149
|
id?: string;
|
|
@@ -154,29 +158,24 @@ interface GroundedUtterance {
|
|
|
154
158
|
supporting_fact_ids?: string[];
|
|
155
159
|
metadata?: Record<string, unknown>;
|
|
156
160
|
}
|
|
157
|
-
interface
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
relationship_id?: string;
|
|
169
|
-
subject_id?: string;
|
|
170
|
-
object_id?: string;
|
|
171
|
-
metadata?: Record<string, unknown>;
|
|
172
|
-
inference_metadata?: Record<string, unknown>;
|
|
161
|
+
interface ActivatedEpisode {
|
|
162
|
+
id?: string;
|
|
163
|
+
name: string;
|
|
164
|
+
activation_score: number;
|
|
165
|
+
status?: string;
|
|
166
|
+
t_start?: number;
|
|
167
|
+
t_last?: number;
|
|
168
|
+
n_facts: number;
|
|
169
|
+
member_knowledge_ids?: string[];
|
|
170
|
+
source_chunk_ids?: string[];
|
|
171
|
+
entity_names?: string[];
|
|
173
172
|
}
|
|
174
173
|
interface MemoryResponse {
|
|
175
174
|
query: string;
|
|
176
175
|
entities: ActivatedEntity[];
|
|
177
|
-
|
|
176
|
+
knowledge: ActivatedKnowledge[];
|
|
177
|
+
episodes?: ActivatedEpisode[];
|
|
178
178
|
utterances: GroundedUtterance[];
|
|
179
|
-
inference_hints?: InferenceHint[];
|
|
180
179
|
total_traversal_time_ms?: number;
|
|
181
180
|
token_count?: number;
|
|
182
181
|
}
|
|
@@ -546,4 +545,4 @@ type MemoryFactory = {
|
|
|
546
545
|
declare const Memory: MemoryFactory;
|
|
547
546
|
type Memory = Memory$1;
|
|
548
547
|
|
|
549
|
-
export { type ActivatedEntity, type ActivatedFacet, type
|
|
548
|
+
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type ActivatedKnowledge, type Chunk, type Collection, type FileContentPart, type GraphCommunityResult, type GraphEntityResult, type GraphRelationshipResult, GraphSearchResultType, type GroundedUtterance, 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,12 +123,13 @@ interface ActivatedFacet {
|
|
|
123
123
|
facet_id: string;
|
|
124
124
|
facet_name: string;
|
|
125
125
|
relevance_score: number;
|
|
126
|
-
facts:
|
|
126
|
+
facts: ActivatedKnowledge[];
|
|
127
127
|
coherence_score?: number;
|
|
128
128
|
is_noise: boolean;
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
130
|
+
interface ActivatedKnowledge {
|
|
131
131
|
id?: string;
|
|
132
|
+
category?: string;
|
|
132
133
|
entity_id?: string;
|
|
133
134
|
entity_name?: string;
|
|
134
135
|
facet_name?: string;
|
|
@@ -140,6 +141,9 @@ interface ActivatedFact {
|
|
|
140
141
|
corroboration_count?: number;
|
|
141
142
|
confidence?: number;
|
|
142
143
|
source_chunk_ids?: string[];
|
|
144
|
+
reasoning?: string;
|
|
145
|
+
resolved_at?: string;
|
|
146
|
+
source_nodegroup_ids?: string[];
|
|
143
147
|
}
|
|
144
148
|
interface GroundedUtterance {
|
|
145
149
|
id?: string;
|
|
@@ -154,29 +158,24 @@ interface GroundedUtterance {
|
|
|
154
158
|
supporting_fact_ids?: string[];
|
|
155
159
|
metadata?: Record<string, unknown>;
|
|
156
160
|
}
|
|
157
|
-
interface
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
relationship_id?: string;
|
|
169
|
-
subject_id?: string;
|
|
170
|
-
object_id?: string;
|
|
171
|
-
metadata?: Record<string, unknown>;
|
|
172
|
-
inference_metadata?: Record<string, unknown>;
|
|
161
|
+
interface ActivatedEpisode {
|
|
162
|
+
id?: string;
|
|
163
|
+
name: string;
|
|
164
|
+
activation_score: number;
|
|
165
|
+
status?: string;
|
|
166
|
+
t_start?: number;
|
|
167
|
+
t_last?: number;
|
|
168
|
+
n_facts: number;
|
|
169
|
+
member_knowledge_ids?: string[];
|
|
170
|
+
source_chunk_ids?: string[];
|
|
171
|
+
entity_names?: string[];
|
|
173
172
|
}
|
|
174
173
|
interface MemoryResponse {
|
|
175
174
|
query: string;
|
|
176
175
|
entities: ActivatedEntity[];
|
|
177
|
-
|
|
176
|
+
knowledge: ActivatedKnowledge[];
|
|
177
|
+
episodes?: ActivatedEpisode[];
|
|
178
178
|
utterances: GroundedUtterance[];
|
|
179
|
-
inference_hints?: InferenceHint[];
|
|
180
179
|
total_traversal_time_ms?: number;
|
|
181
180
|
token_count?: number;
|
|
182
181
|
}
|
|
@@ -546,4 +545,4 @@ type MemoryFactory = {
|
|
|
546
545
|
declare const Memory: MemoryFactory;
|
|
547
546
|
type Memory = Memory$1;
|
|
548
547
|
|
|
549
|
-
export { type ActivatedEntity, type ActivatedFacet, type
|
|
548
|
+
export { type ActivatedEntity, type ActivatedEpisode, type ActivatedFacet, type ActivatedKnowledge, type Chunk, type Collection, type FileContentPart, type GraphCommunityResult, type GraphEntityResult, type GraphRelationshipResult, GraphSearchResultType, type GroundedUtterance, 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
|
@@ -847,9 +847,9 @@ var _Nebula = class _Nebula {
|
|
|
847
847
|
const memoryResponse = {
|
|
848
848
|
query: memoryResponseData.query || options.query,
|
|
849
849
|
entities: memoryResponseData.entities || [],
|
|
850
|
-
|
|
850
|
+
knowledge: memoryResponseData.knowledge ?? memoryResponseData.facts ?? [],
|
|
851
|
+
episodes: memoryResponseData.episodes || [],
|
|
851
852
|
utterances: memoryResponseData.utterances || [],
|
|
852
|
-
inference_hints: memoryResponseData.inference_hints || [],
|
|
853
853
|
total_traversal_time_ms: memoryResponseData.total_traversal_time_ms,
|
|
854
854
|
token_count: memoryResponseData.token_count
|
|
855
855
|
};
|