@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 CHANGED
@@ -123,12 +123,13 @@ interface ActivatedFacet {
123
123
  facet_id: string;
124
124
  facet_name: string;
125
125
  relevance_score: number;
126
- facts: ActivatedFact[];
126
+ facts: ActivatedKnowledge[];
127
127
  coherence_score?: number;
128
128
  is_noise: boolean;
129
129
  }
130
- interface ActivatedFact {
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 InferenceHint {
158
- term: string;
159
- predicate: string;
160
- object: string;
161
- inferred?: boolean;
162
- confidence?: number;
163
- ledger_p_use?: number;
164
- ledger_p_true?: number;
165
- ledger_p_stable?: number;
166
- usable_for_rewrite?: boolean;
167
- used_for_rewrite?: boolean;
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
- facts: ActivatedFact[];
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 ActivatedFact, 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 };
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: ActivatedFact[];
126
+ facts: ActivatedKnowledge[];
127
127
  coherence_score?: number;
128
128
  is_noise: boolean;
129
129
  }
130
- interface ActivatedFact {
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 InferenceHint {
158
- term: string;
159
- predicate: string;
160
- object: string;
161
- inferred?: boolean;
162
- confidence?: number;
163
- ledger_p_use?: number;
164
- ledger_p_true?: number;
165
- ledger_p_stable?: number;
166
- usable_for_rewrite?: boolean;
167
- used_for_rewrite?: boolean;
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
- facts: ActivatedFact[];
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 ActivatedFact, 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 };
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
- facts: memoryResponseData.facts || [],
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
  };