@memnexus-ai/typescript-sdk 1.47.4 → 1.48.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.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7240,6 +7240,20 @@ declare class EntitiesService extends BaseService {
|
|
|
7240
7240
|
count?: number;
|
|
7241
7241
|
};
|
|
7242
7242
|
}>>;
|
|
7243
|
+
/**
|
|
7244
|
+
* Get graph health metrics
|
|
7245
|
+
* Returns knowledge graph health metrics including entity counts, fact counts, topic counts, and extraction coverage
|
|
7246
|
+
*/
|
|
7247
|
+
getGraphHealth(): Promise<HttpResponse<{
|
|
7248
|
+
data?: {
|
|
7249
|
+
totalMemories?: number;
|
|
7250
|
+
totalEntities?: number;
|
|
7251
|
+
totalFacts?: number;
|
|
7252
|
+
totalTopics?: number;
|
|
7253
|
+
memoriesWithEntities?: number;
|
|
7254
|
+
entityCoverage?: number;
|
|
7255
|
+
};
|
|
7256
|
+
}>>;
|
|
7243
7257
|
}
|
|
7244
7258
|
|
|
7245
7259
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -7240,6 +7240,20 @@ declare class EntitiesService extends BaseService {
|
|
|
7240
7240
|
count?: number;
|
|
7241
7241
|
};
|
|
7242
7242
|
}>>;
|
|
7243
|
+
/**
|
|
7244
|
+
* Get graph health metrics
|
|
7245
|
+
* Returns knowledge graph health metrics including entity counts, fact counts, topic counts, and extraction coverage
|
|
7246
|
+
*/
|
|
7247
|
+
getGraphHealth(): Promise<HttpResponse<{
|
|
7248
|
+
data?: {
|
|
7249
|
+
totalMemories?: number;
|
|
7250
|
+
totalEntities?: number;
|
|
7251
|
+
totalFacts?: number;
|
|
7252
|
+
totalTopics?: number;
|
|
7253
|
+
memoriesWithEntities?: number;
|
|
7254
|
+
entityCoverage?: number;
|
|
7255
|
+
};
|
|
7256
|
+
}>>;
|
|
7243
7257
|
}
|
|
7244
7258
|
|
|
7245
7259
|
/**
|
package/dist/index.js
CHANGED
|
@@ -3585,6 +3585,26 @@ var EntitiesService = class extends BaseService {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
return this.client.call(request);
|
|
3587
3587
|
}
|
|
3588
|
+
/**
|
|
3589
|
+
* Get graph health metrics
|
|
3590
|
+
* Returns knowledge graph health metrics including entity counts, fact counts, topic counts, and extraction coverage
|
|
3591
|
+
*/
|
|
3592
|
+
async getGraphHealth() {
|
|
3593
|
+
const request = new Request({
|
|
3594
|
+
baseUrl: this.config.baseUrl || "http://localhost:3000",
|
|
3595
|
+
method: "GET",
|
|
3596
|
+
path: "/api/entities/health",
|
|
3597
|
+
config: this.config,
|
|
3598
|
+
retry: {
|
|
3599
|
+
attempts: 3,
|
|
3600
|
+
delayMs: 150,
|
|
3601
|
+
maxDelayMs: 5e3,
|
|
3602
|
+
jitterMs: 50,
|
|
3603
|
+
backoffFactor: 2
|
|
3604
|
+
}
|
|
3605
|
+
});
|
|
3606
|
+
return this.client.call(request);
|
|
3607
|
+
}
|
|
3588
3608
|
};
|
|
3589
3609
|
|
|
3590
3610
|
// src/services/conversations-service.ts
|