@kortexya/reasoninglayer 1.10.1 → 1.11.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 +45 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -3
- package/dist/index.d.ts +47 -3
- package/dist/index.js +45 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// src/config.ts
|
|
10
|
-
var SDK_VERSION = "1.
|
|
10
|
+
var SDK_VERSION = "1.11.0";
|
|
11
11
|
function resolveConfig(config) {
|
|
12
12
|
if (!config.baseUrl) {
|
|
13
13
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -22942,6 +22942,26 @@ function ResearchSessionResponseFromApiToFront(raw) {
|
|
|
22942
22942
|
updatedAt: dto.updated_at
|
|
22943
22943
|
};
|
|
22944
22944
|
}
|
|
22945
|
+
function ResearchSessionSummaryFromApiToFront(raw) {
|
|
22946
|
+
const dto = raw;
|
|
22947
|
+
return {
|
|
22948
|
+
sessionId: dto.session_id,
|
|
22949
|
+
question: dto.question,
|
|
22950
|
+
status: dto.status,
|
|
22951
|
+
totalPapersIngested: dto.total_papers_ingested,
|
|
22952
|
+
totalFindings: dto.total_findings,
|
|
22953
|
+
totalContradictions: dto.total_contradictions,
|
|
22954
|
+
totalGaps: dto.total_gaps,
|
|
22955
|
+
createdAt: dto.created_at,
|
|
22956
|
+
updatedAt: dto.updated_at
|
|
22957
|
+
};
|
|
22958
|
+
}
|
|
22959
|
+
function ListResearchSessionsResponseFromApiToFront(raw) {
|
|
22960
|
+
const dto = raw;
|
|
22961
|
+
return {
|
|
22962
|
+
sessions: (dto.sessions ?? []).map(ResearchSessionSummaryFromApiToFront)
|
|
22963
|
+
};
|
|
22964
|
+
}
|
|
22945
22965
|
function ResearchCycleResponseFromApiToFront(raw) {
|
|
22946
22966
|
const dto = raw;
|
|
22947
22967
|
return {
|
|
@@ -23188,6 +23208,30 @@ var ResearchClient = class {
|
|
|
23188
23208
|
});
|
|
23189
23209
|
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23190
23210
|
}
|
|
23211
|
+
/**
|
|
23212
|
+
* List the current tenant's research sessions, newest first.
|
|
23213
|
+
*
|
|
23214
|
+
* Tenant-scoped via the `X-Tenant-Id` header (set on the client), mirroring
|
|
23215
|
+
* how conversations are listed. Returns lightweight summaries — use
|
|
23216
|
+
* {@link getSession} / {@link getReport} for a session's full detail.
|
|
23217
|
+
*
|
|
23218
|
+
* @returns The tenant's session summaries.
|
|
23219
|
+
*
|
|
23220
|
+
* @example
|
|
23221
|
+
* ```ts
|
|
23222
|
+
* const { sessions } = await client.research.listSessions();
|
|
23223
|
+
* sessions.forEach((s) => console.log(s.sessionId, s.status, s.question));
|
|
23224
|
+
* ```
|
|
23225
|
+
*/
|
|
23226
|
+
async listSessions() {
|
|
23227
|
+
const response = await this.http.request({
|
|
23228
|
+
path: `/api/v1/research/sessions`,
|
|
23229
|
+
method: "GET",
|
|
23230
|
+
secure: true,
|
|
23231
|
+
format: "json"
|
|
23232
|
+
});
|
|
23233
|
+
return ListResearchSessionsResponseFromApiToFront(response.data);
|
|
23234
|
+
}
|
|
23191
23235
|
/**
|
|
23192
23236
|
* Run a single research cycle within a session.
|
|
23193
23237
|
*
|