@corti/sdk 1.1.0-coding → 1.2.0-rc
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsUpdateAgent.d.ts +2 -0
- package/dist/cjs/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +1 -1
- package/dist/cjs/api/resources/codes/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/codes/client/Client.js +1 -1
- package/dist/cjs/api/types/AgentsAgent.d.ts +2 -0
- package/dist/cjs/api/types/AgentsMcpServerTransportType.d.ts +1 -0
- package/dist/cjs/api/types/AgentsMcpServerTransportType.js +1 -0
- package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +4 -0
- package/dist/cjs/api/types/AgentsUpdateExpertReference.d.ts +5 -0
- package/dist/cjs/api/types/AgentsUpdateExpertReference.js +3 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +2 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.js +2 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.d.ts +2 -0
- package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.js +2 -0
- package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.ts +2 -0
- package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.js +2 -0
- package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +2 -2
- package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.js +2 -2
- package/dist/cjs/serialization/types/AgentsAgent.d.ts +2 -0
- package/dist/cjs/serialization/types/AgentsAgent.js +2 -0
- package/dist/cjs/serialization/types/AgentsMcpServerTransportType.d.ts +1 -1
- package/dist/cjs/serialization/types/AgentsMcpServerTransportType.js +1 -1
- package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +2 -0
- package/dist/cjs/serialization/types/AgentsRegistryExpert.js +2 -0
- package/dist/cjs/serialization/types/AgentsUpdateExpertReference.d.ts +8 -0
- package/dist/cjs/serialization/types/AgentsUpdateExpertReference.js +6 -0
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +2 -0
- package/dist/cjs/serialization/types/index.d.ts +1 -0
- package/dist/cjs/serialization/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsUpdateAgent.d.mts +2 -0
- package/dist/esm/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +1 -1
- package/dist/esm/api/resources/codes/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/codes/client/Client.mjs +1 -1
- package/dist/esm/api/types/AgentsAgent.d.mts +2 -0
- package/dist/esm/api/types/AgentsMcpServerTransportType.d.mts +1 -0
- package/dist/esm/api/types/AgentsMcpServerTransportType.mjs +1 -0
- package/dist/esm/api/types/AgentsRegistryExpert.d.mts +4 -0
- package/dist/esm/api/types/AgentsUpdateExpertReference.d.mts +5 -0
- package/dist/esm/api/types/AgentsUpdateExpertReference.mjs +2 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +2 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.d.mts +2 -0
- package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.mjs +2 -0
- package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.mts +2 -0
- package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.mjs +2 -0
- package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +2 -2
- package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.mjs +2 -2
- package/dist/esm/serialization/types/AgentsAgent.d.mts +2 -0
- package/dist/esm/serialization/types/AgentsAgent.mjs +2 -0
- package/dist/esm/serialization/types/AgentsMcpServerTransportType.d.mts +1 -1
- package/dist/esm/serialization/types/AgentsMcpServerTransportType.mjs +1 -1
- package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +2 -0
- package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +2 -0
- package/dist/esm/serialization/types/AgentsUpdateExpertReference.d.mts +8 -0
- package/dist/esm/serialization/types/AgentsUpdateExpertReference.mjs +3 -0
- package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +2 -0
- package/dist/esm/serialization/types/index.d.mts +1 -0
- package/dist/esm/serialization/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.
|
|
47
|
-
"User-Agent": "@corti/sdk/1.
|
|
46
|
+
"X-Fern-SDK-Version": "1.2.0-rc",
|
|
47
|
+
"User-Agent": "@corti/sdk/1.2.0-rc",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -18,4 +18,6 @@ export interface AgentsCreateAgent {
|
|
|
18
18
|
/** A brief description of the agent's capabilities. */
|
|
19
19
|
description: string;
|
|
20
20
|
experts?: Corti.AgentsCreateAgentExpertsItem[];
|
|
21
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
22
|
+
mcpServers?: Corti.AgentsCreateMcpServer[];
|
|
21
23
|
}
|
|
@@ -11,4 +11,6 @@ export interface AgentsUpdateAgent {
|
|
|
11
11
|
/** A brief description of the agent's capabilities. */
|
|
12
12
|
description?: string;
|
|
13
13
|
experts?: Corti.AgentsUpdateAgentExpertsItem[];
|
|
14
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
15
|
+
mcpServers?: Corti.AgentsCreateMcpServer[];
|
|
14
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../../../index.js";
|
|
2
|
-
export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.
|
|
2
|
+
export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsUpdateExpertReference;
|
|
@@ -11,7 +11,7 @@ export declare class CodesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
|
|
12
12
|
constructor(options: CodesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4 and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
14
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
15
15
|
*
|
|
16
16
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
17
17
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class CodesClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4 and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
59
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
62
62
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,4 +9,6 @@ export interface AgentsAgent {
|
|
|
9
9
|
/** The system prompt that defines the overall agents behavior and expectations. */
|
|
10
10
|
systemPrompt: string;
|
|
11
11
|
experts?: Corti.AgentsAgentExpertsItem[];
|
|
12
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
13
|
+
mcpServers?: Corti.AgentsMcpServer[];
|
|
12
14
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export declare const AgentsMcpServerTransportType: {
|
|
3
3
|
readonly Stdio: "stdio";
|
|
4
4
|
readonly StreamableHttp: "streamable_http";
|
|
5
|
+
readonly Sse: "sse";
|
|
5
6
|
};
|
|
6
7
|
export type AgentsMcpServerTransportType = (typeof AgentsMcpServerTransportType)[keyof typeof AgentsMcpServerTransportType];
|
|
@@ -2,6 +2,10 @@ import type * as Corti from "../index.js";
|
|
|
2
2
|
export interface AgentsRegistryExpert {
|
|
3
3
|
/** The name of the expert. */
|
|
4
4
|
name: string;
|
|
5
|
+
/** An optional human-readable display name for the expert. */
|
|
6
|
+
displayName?: string;
|
|
7
|
+
/** An optional human-readable display description for the expert. */
|
|
8
|
+
displayDescription?: string;
|
|
5
9
|
/** A brief description of the expert's capabilities. */
|
|
6
10
|
description: string;
|
|
7
11
|
/** A list of MCP servers the expert can call, including their authorization types. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* An expert reference when updating an agent. The id is required to identify which expert to update, or reference. The expert must already exist.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentsUpdateExpertReference = Corti.AgentsCreateExpertReference;
|
|
@@ -12,5 +12,7 @@ export declare const CommonCodingSystemEnum: {
|
|
|
12
12
|
readonly Icd10GmInpatient: "icd10gm-inpatient";
|
|
13
13
|
readonly Icd10GmOutpatient: "icd10gm-outpatient";
|
|
14
14
|
readonly Opcs4: "opcs4";
|
|
15
|
+
readonly Ops: "ops";
|
|
16
|
+
readonly Ccam: "ccam";
|
|
15
17
|
};
|
|
16
18
|
export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum];
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.js";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.js";
|
|
53
53
|
export * from "./AgentsTextPart.js";
|
|
54
54
|
export * from "./AgentsTextPartKind.js";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.js";
|
|
55
56
|
export * from "./AgentsValidationError.js";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.js";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.js";
|
|
@@ -68,6 +68,7 @@ __exportStar(require("./AgentsTaskStatus.js"), exports);
|
|
|
68
68
|
__exportStar(require("./AgentsTaskStatusState.js"), exports);
|
|
69
69
|
__exportStar(require("./AgentsTextPart.js"), exports);
|
|
70
70
|
__exportStar(require("./AgentsTextPartKind.js"), exports);
|
|
71
|
+
__exportStar(require("./AgentsUpdateExpertReference.js"), exports);
|
|
71
72
|
__exportStar(require("./AgentsValidationError.js"), exports);
|
|
72
73
|
__exportStar(require("./AgentsValidationErrorErrorsItem.js"), exports);
|
|
73
74
|
__exportStar(require("./AgentsValidationErrorResponse.js"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.js";
|
|
4
5
|
import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.js";
|
|
5
6
|
import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.js";
|
|
6
7
|
export declare const AgentsCreateAgent: core.serialization.Schema<serializers.AgentsCreateAgent.Raw, Omit<Corti.AgentsCreateAgent, "ephemeral">>;
|
|
@@ -11,5 +12,6 @@ export declare namespace AgentsCreateAgent {
|
|
|
11
12
|
systemPrompt?: string | null;
|
|
12
13
|
description: string;
|
|
13
14
|
experts?: AgentsCreateAgentExpertsItem.Raw[] | null;
|
|
15
|
+
mcpServers?: AgentsCreateMcpServer.Raw[] | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentsCreateAgent = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const AgentsCreateMcpServer_js_1 = require("../../../../types/AgentsCreateMcpServer.js");
|
|
39
40
|
const AgentsCreateAgentAgentType_js_1 = require("../../types/AgentsCreateAgentAgentType.js");
|
|
40
41
|
const AgentsCreateAgentExpertsItem_js_1 = require("../../types/AgentsCreateAgentExpertsItem.js");
|
|
41
42
|
exports.AgentsCreateAgent = core.serialization.object({
|
|
@@ -44,4 +45,5 @@ exports.AgentsCreateAgent = core.serialization.object({
|
|
|
44
45
|
systemPrompt: core.serialization.string().optional(),
|
|
45
46
|
description: core.serialization.string(),
|
|
46
47
|
experts: core.serialization.list(AgentsCreateAgentExpertsItem_js_1.AgentsCreateAgentExpertsItem).optional(),
|
|
48
|
+
mcpServers: core.serialization.list(AgentsCreateMcpServer_js_1.AgentsCreateMcpServer).optional(),
|
|
47
49
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.js";
|
|
4
5
|
import { AgentsUpdateAgentExpertsItem } from "../../types/AgentsUpdateAgentExpertsItem.js";
|
|
5
6
|
export declare const AgentsUpdateAgent: core.serialization.Schema<serializers.AgentsUpdateAgent.Raw, Corti.AgentsUpdateAgent>;
|
|
6
7
|
export declare namespace AgentsUpdateAgent {
|
|
@@ -9,5 +10,6 @@ export declare namespace AgentsUpdateAgent {
|
|
|
9
10
|
systemPrompt?: string | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
experts?: AgentsUpdateAgentExpertsItem.Raw[] | null;
|
|
13
|
+
mcpServers?: AgentsCreateMcpServer.Raw[] | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -36,10 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentsUpdateAgent = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const AgentsCreateMcpServer_js_1 = require("../../../../types/AgentsCreateMcpServer.js");
|
|
39
40
|
const AgentsUpdateAgentExpertsItem_js_1 = require("../../types/AgentsUpdateAgentExpertsItem.js");
|
|
40
41
|
exports.AgentsUpdateAgent = core.serialization.object({
|
|
41
42
|
name: core.serialization.string().optional(),
|
|
42
43
|
systemPrompt: core.serialization.string().optional(),
|
|
43
44
|
description: core.serialization.string().optional(),
|
|
44
45
|
experts: core.serialization.list(AgentsUpdateAgentExpertsItem_js_1.AgentsUpdateAgentExpertsItem).optional(),
|
|
46
|
+
mcpServers: core.serialization.list(AgentsCreateMcpServer_js_1.AgentsCreateMcpServer).optional(),
|
|
45
47
|
});
|
|
@@ -2,8 +2,8 @@ import type * as Corti from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.js";
|
|
5
|
-
import {
|
|
5
|
+
import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.js";
|
|
6
6
|
export declare const AgentsUpdateAgentExpertsItem: core.serialization.Schema<serializers.AgentsUpdateAgentExpertsItem.Raw, Corti.AgentsUpdateAgentExpertsItem>;
|
|
7
7
|
export declare namespace AgentsUpdateAgentExpertsItem {
|
|
8
|
-
type Raw = AgentsCreateExpert.Raw |
|
|
8
|
+
type Raw = AgentsCreateExpert.Raw | AgentsUpdateExpertReference.Raw;
|
|
9
9
|
}
|
|
@@ -37,5 +37,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.AgentsUpdateAgentExpertsItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const AgentsCreateExpert_js_1 = require("../../../types/AgentsCreateExpert.js");
|
|
40
|
-
const
|
|
41
|
-
exports.AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert,
|
|
40
|
+
const AgentsUpdateExpertReference_js_1 = require("../../../types/AgentsUpdateExpertReference.js");
|
|
41
|
+
exports.AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert_js_1.AgentsCreateExpert, AgentsUpdateExpertReference_js_1.AgentsUpdateExpertReference]);
|
|
@@ -2,6 +2,7 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { AgentsAgentExpertsItem } from "./AgentsAgentExpertsItem.js";
|
|
5
|
+
import { AgentsMcpServer } from "./AgentsMcpServer.js";
|
|
5
6
|
export declare const AgentsAgent: core.serialization.ObjectSchema<serializers.AgentsAgent.Raw, Corti.AgentsAgent>;
|
|
6
7
|
export declare namespace AgentsAgent {
|
|
7
8
|
interface Raw {
|
|
@@ -10,5 +11,6 @@ export declare namespace AgentsAgent {
|
|
|
10
11
|
description: string;
|
|
11
12
|
systemPrompt: string;
|
|
12
13
|
experts?: AgentsAgentExpertsItem.Raw[] | null;
|
|
14
|
+
mcpServers?: AgentsMcpServer.Raw[] | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.AgentsAgent = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const AgentsAgentExpertsItem_js_1 = require("./AgentsAgentExpertsItem.js");
|
|
40
|
+
const AgentsMcpServer_js_1 = require("./AgentsMcpServer.js");
|
|
40
41
|
exports.AgentsAgent = core.serialization.object({
|
|
41
42
|
id: core.serialization.string(),
|
|
42
43
|
name: core.serialization.string(),
|
|
43
44
|
description: core.serialization.string(),
|
|
44
45
|
systemPrompt: core.serialization.string(),
|
|
45
46
|
experts: core.serialization.list(AgentsAgentExpertsItem_js_1.AgentsAgentExpertsItem).optional(),
|
|
47
|
+
mcpServers: core.serialization.list(AgentsMcpServer_js_1.AgentsMcpServer).optional(),
|
|
46
48
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
export declare const AgentsMcpServerTransportType: core.serialization.Schema<serializers.AgentsMcpServerTransportType.Raw, Corti.AgentsMcpServerTransportType>;
|
|
5
5
|
export declare namespace AgentsMcpServerTransportType {
|
|
6
|
-
type Raw = "stdio" | "streamable_http";
|
|
6
|
+
type Raw = "stdio" | "streamable_http" | "sse";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentsMcpServerTransportType = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http"]);
|
|
39
|
+
exports.AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http", "sse"]);
|
|
@@ -6,6 +6,8 @@ export declare const AgentsRegistryExpert: core.serialization.ObjectSchema<seria
|
|
|
6
6
|
export declare namespace AgentsRegistryExpert {
|
|
7
7
|
interface Raw {
|
|
8
8
|
name: string;
|
|
9
|
+
displayName?: string | null;
|
|
10
|
+
displayDescription?: string | null;
|
|
9
11
|
description: string;
|
|
10
12
|
mcpServers?: AgentsRegistryMcpServer.Raw[] | null;
|
|
11
13
|
}
|
|
@@ -39,6 +39,8 @@ const core = __importStar(require("../../core/index.js"));
|
|
|
39
39
|
const AgentsRegistryMcpServer_js_1 = require("./AgentsRegistryMcpServer.js");
|
|
40
40
|
exports.AgentsRegistryExpert = core.serialization.object({
|
|
41
41
|
name: core.serialization.string(),
|
|
42
|
+
displayName: core.serialization.string().optional(),
|
|
43
|
+
displayDescription: core.serialization.string().optional(),
|
|
42
44
|
description: core.serialization.string(),
|
|
43
45
|
mcpServers: core.serialization.list(AgentsRegistryMcpServer_js_1.AgentsRegistryMcpServer).optional(),
|
|
44
46
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import type * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { AgentsCreateExpertReference } from "./AgentsCreateExpertReference.js";
|
|
5
|
+
export declare const AgentsUpdateExpertReference: core.serialization.ObjectSchema<serializers.AgentsUpdateExpertReference.Raw, Corti.AgentsUpdateExpertReference>;
|
|
6
|
+
export declare namespace AgentsUpdateExpertReference {
|
|
7
|
+
type Raw = AgentsCreateExpertReference.Raw;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AgentsUpdateExpertReference = void 0;
|
|
5
|
+
const AgentsCreateExpertReference_js_1 = require("./AgentsCreateExpertReference.js");
|
|
6
|
+
exports.AgentsUpdateExpertReference = AgentsCreateExpertReference_js_1.AgentsCreateExpertReference;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
|
|
5
5
|
export declare namespace CommonCodingSystemEnum {
|
|
6
|
-
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4";
|
|
6
|
+
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam";
|
|
7
7
|
}
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.js";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.js";
|
|
53
53
|
export * from "./AgentsTextPart.js";
|
|
54
54
|
export * from "./AgentsTextPartKind.js";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.js";
|
|
55
56
|
export * from "./AgentsValidationError.js";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.js";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.js";
|
|
@@ -68,6 +68,7 @@ __exportStar(require("./AgentsTaskStatus.js"), exports);
|
|
|
68
68
|
__exportStar(require("./AgentsTaskStatusState.js"), exports);
|
|
69
69
|
__exportStar(require("./AgentsTextPart.js"), exports);
|
|
70
70
|
__exportStar(require("./AgentsTextPartKind.js"), exports);
|
|
71
|
+
__exportStar(require("./AgentsUpdateExpertReference.js"), exports);
|
|
71
72
|
__exportStar(require("./AgentsValidationError.js"), exports);
|
|
72
73
|
__exportStar(require("./AgentsValidationErrorErrorsItem.js"), exports);
|
|
73
74
|
__exportStar(require("./AgentsValidationErrorResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.0-rc";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.
|
|
10
|
-
"User-Agent": "@corti/sdk/1.
|
|
9
|
+
"X-Fern-SDK-Version": "1.2.0-rc",
|
|
10
|
+
"User-Agent": "@corti/sdk/1.2.0-rc",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -18,4 +18,6 @@ export interface AgentsCreateAgent {
|
|
|
18
18
|
/** A brief description of the agent's capabilities. */
|
|
19
19
|
description: string;
|
|
20
20
|
experts?: Corti.AgentsCreateAgentExpertsItem[];
|
|
21
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
22
|
+
mcpServers?: Corti.AgentsCreateMcpServer[];
|
|
21
23
|
}
|
|
@@ -11,4 +11,6 @@ export interface AgentsUpdateAgent {
|
|
|
11
11
|
/** A brief description of the agent's capabilities. */
|
|
12
12
|
description?: string;
|
|
13
13
|
experts?: Corti.AgentsUpdateAgentExpertsItem[];
|
|
14
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
15
|
+
mcpServers?: Corti.AgentsCreateMcpServer[];
|
|
14
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../../../index.mjs";
|
|
2
|
-
export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.
|
|
2
|
+
export type AgentsUpdateAgentExpertsItem = Corti.AgentsCreateExpert | Corti.AgentsUpdateExpertReference;
|
|
@@ -11,7 +11,7 @@ export declare class CodesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
|
|
12
12
|
constructor(options: CodesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4 and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
14
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
15
15
|
*
|
|
16
16
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
17
17
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class CodesClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4 and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
23
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM and CPT codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
26
26
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,4 +9,6 @@ export interface AgentsAgent {
|
|
|
9
9
|
/** The system prompt that defines the overall agents behavior and expectations. */
|
|
10
10
|
systemPrompt: string;
|
|
11
11
|
experts?: Corti.AgentsAgentExpertsItem[];
|
|
12
|
+
/** A list of MCP servers that the agent can call. If omitted, the agent can't call any MCP servers. */
|
|
13
|
+
mcpServers?: Corti.AgentsMcpServer[];
|
|
12
14
|
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export declare const AgentsMcpServerTransportType: {
|
|
3
3
|
readonly Stdio: "stdio";
|
|
4
4
|
readonly StreamableHttp: "streamable_http";
|
|
5
|
+
readonly Sse: "sse";
|
|
5
6
|
};
|
|
6
7
|
export type AgentsMcpServerTransportType = (typeof AgentsMcpServerTransportType)[keyof typeof AgentsMcpServerTransportType];
|
|
@@ -2,6 +2,10 @@ import type * as Corti from "../index.mjs";
|
|
|
2
2
|
export interface AgentsRegistryExpert {
|
|
3
3
|
/** The name of the expert. */
|
|
4
4
|
name: string;
|
|
5
|
+
/** An optional human-readable display name for the expert. */
|
|
6
|
+
displayName?: string;
|
|
7
|
+
/** An optional human-readable display description for the expert. */
|
|
8
|
+
displayDescription?: string;
|
|
5
9
|
/** A brief description of the expert's capabilities. */
|
|
6
10
|
description: string;
|
|
7
11
|
/** A list of MCP servers the expert can call, including their authorization types. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* An expert reference when updating an agent. The id is required to identify which expert to update, or reference. The expert must already exist.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentsUpdateExpertReference = Corti.AgentsCreateExpertReference;
|
|
@@ -12,5 +12,7 @@ export declare const CommonCodingSystemEnum: {
|
|
|
12
12
|
readonly Icd10GmInpatient: "icd10gm-inpatient";
|
|
13
13
|
readonly Icd10GmOutpatient: "icd10gm-outpatient";
|
|
14
14
|
readonly Opcs4: "opcs4";
|
|
15
|
+
readonly Ops: "ops";
|
|
16
|
+
readonly Ccam: "ccam";
|
|
15
17
|
};
|
|
16
18
|
export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum];
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.mjs";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.mjs";
|
|
53
53
|
export * from "./AgentsTextPart.mjs";
|
|
54
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.mjs";
|
|
55
56
|
export * from "./AgentsValidationError.mjs";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.mjs";
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.mjs";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.mjs";
|
|
53
53
|
export * from "./AgentsTextPart.mjs";
|
|
54
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.mjs";
|
|
55
56
|
export * from "./AgentsValidationError.mjs";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
|
|
4
5
|
import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.mjs";
|
|
5
6
|
import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.mjs";
|
|
6
7
|
export declare const AgentsCreateAgent: core.serialization.Schema<serializers.AgentsCreateAgent.Raw, Omit<Corti.AgentsCreateAgent, "ephemeral">>;
|
|
@@ -11,5 +12,6 @@ export declare namespace AgentsCreateAgent {
|
|
|
11
12
|
systemPrompt?: string | null;
|
|
12
13
|
description: string;
|
|
13
14
|
experts?: AgentsCreateAgentExpertsItem.Raw[] | null;
|
|
15
|
+
mcpServers?: AgentsCreateMcpServer.Raw[] | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
|
|
3
4
|
import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.mjs";
|
|
4
5
|
import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.mjs";
|
|
5
6
|
export const AgentsCreateAgent = core.serialization.object({
|
|
@@ -8,4 +9,5 @@ export const AgentsCreateAgent = core.serialization.object({
|
|
|
8
9
|
systemPrompt: core.serialization.string().optional(),
|
|
9
10
|
description: core.serialization.string(),
|
|
10
11
|
experts: core.serialization.list(AgentsCreateAgentExpertsItem).optional(),
|
|
12
|
+
mcpServers: core.serialization.list(AgentsCreateMcpServer).optional(),
|
|
11
13
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
|
|
4
5
|
import { AgentsUpdateAgentExpertsItem } from "../../types/AgentsUpdateAgentExpertsItem.mjs";
|
|
5
6
|
export declare const AgentsUpdateAgent: core.serialization.Schema<serializers.AgentsUpdateAgent.Raw, Corti.AgentsUpdateAgent>;
|
|
6
7
|
export declare namespace AgentsUpdateAgent {
|
|
@@ -9,5 +10,6 @@ export declare namespace AgentsUpdateAgent {
|
|
|
9
10
|
systemPrompt?: string | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
experts?: AgentsUpdateAgentExpertsItem.Raw[] | null;
|
|
13
|
+
mcpServers?: AgentsCreateMcpServer.Raw[] | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
|
|
3
4
|
import { AgentsUpdateAgentExpertsItem } from "../../types/AgentsUpdateAgentExpertsItem.mjs";
|
|
4
5
|
export const AgentsUpdateAgent = core.serialization.object({
|
|
5
6
|
name: core.serialization.string().optional(),
|
|
6
7
|
systemPrompt: core.serialization.string().optional(),
|
|
7
8
|
description: core.serialization.string().optional(),
|
|
8
9
|
experts: core.serialization.list(AgentsUpdateAgentExpertsItem).optional(),
|
|
10
|
+
mcpServers: core.serialization.list(AgentsCreateMcpServer).optional(),
|
|
9
11
|
});
|
|
@@ -2,8 +2,8 @@ import type * as Corti from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.mjs";
|
|
6
6
|
export declare const AgentsUpdateAgentExpertsItem: core.serialization.Schema<serializers.AgentsUpdateAgentExpertsItem.Raw, Corti.AgentsUpdateAgentExpertsItem>;
|
|
7
7
|
export declare namespace AgentsUpdateAgentExpertsItem {
|
|
8
|
-
type Raw = AgentsCreateExpert.Raw |
|
|
8
|
+
type Raw = AgentsCreateExpert.Raw | AgentsUpdateExpertReference.Raw;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.mjs";
|
|
4
|
-
import {
|
|
5
|
-
export const AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert,
|
|
4
|
+
import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.mjs";
|
|
5
|
+
export const AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert, AgentsUpdateExpertReference]);
|
|
@@ -2,6 +2,7 @@ import type * as Corti from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { AgentsAgentExpertsItem } from "./AgentsAgentExpertsItem.mjs";
|
|
5
|
+
import { AgentsMcpServer } from "./AgentsMcpServer.mjs";
|
|
5
6
|
export declare const AgentsAgent: core.serialization.ObjectSchema<serializers.AgentsAgent.Raw, Corti.AgentsAgent>;
|
|
6
7
|
export declare namespace AgentsAgent {
|
|
7
8
|
interface Raw {
|
|
@@ -10,5 +11,6 @@ export declare namespace AgentsAgent {
|
|
|
10
11
|
description: string;
|
|
11
12
|
systemPrompt: string;
|
|
12
13
|
experts?: AgentsAgentExpertsItem.Raw[] | null;
|
|
14
|
+
mcpServers?: AgentsMcpServer.Raw[] | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { AgentsAgentExpertsItem } from "./AgentsAgentExpertsItem.mjs";
|
|
4
|
+
import { AgentsMcpServer } from "./AgentsMcpServer.mjs";
|
|
4
5
|
export const AgentsAgent = core.serialization.object({
|
|
5
6
|
id: core.serialization.string(),
|
|
6
7
|
name: core.serialization.string(),
|
|
7
8
|
description: core.serialization.string(),
|
|
8
9
|
systemPrompt: core.serialization.string(),
|
|
9
10
|
experts: core.serialization.list(AgentsAgentExpertsItem).optional(),
|
|
11
|
+
mcpServers: core.serialization.list(AgentsMcpServer).optional(),
|
|
10
12
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
export declare const AgentsMcpServerTransportType: core.serialization.Schema<serializers.AgentsMcpServerTransportType.Raw, Corti.AgentsMcpServerTransportType>;
|
|
5
5
|
export declare namespace AgentsMcpServerTransportType {
|
|
6
|
-
type Raw = "stdio" | "streamable_http";
|
|
6
|
+
type Raw = "stdio" | "streamable_http" | "sse";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
export const AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http"]);
|
|
3
|
+
export const AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http", "sse"]);
|
|
@@ -6,6 +6,8 @@ export declare const AgentsRegistryExpert: core.serialization.ObjectSchema<seria
|
|
|
6
6
|
export declare namespace AgentsRegistryExpert {
|
|
7
7
|
interface Raw {
|
|
8
8
|
name: string;
|
|
9
|
+
displayName?: string | null;
|
|
10
|
+
displayDescription?: string | null;
|
|
9
11
|
description: string;
|
|
10
12
|
mcpServers?: AgentsRegistryMcpServer.Raw[] | null;
|
|
11
13
|
}
|
|
@@ -3,6 +3,8 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import { AgentsRegistryMcpServer } from "./AgentsRegistryMcpServer.mjs";
|
|
4
4
|
export const AgentsRegistryExpert = core.serialization.object({
|
|
5
5
|
name: core.serialization.string(),
|
|
6
|
+
displayName: core.serialization.string().optional(),
|
|
7
|
+
displayDescription: core.serialization.string().optional(),
|
|
6
8
|
description: core.serialization.string(),
|
|
7
9
|
mcpServers: core.serialization.list(AgentsRegistryMcpServer).optional(),
|
|
8
10
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import type * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { AgentsCreateExpertReference } from "./AgentsCreateExpertReference.mjs";
|
|
5
|
+
export declare const AgentsUpdateExpertReference: core.serialization.ObjectSchema<serializers.AgentsUpdateExpertReference.Raw, Corti.AgentsUpdateExpertReference>;
|
|
6
|
+
export declare namespace AgentsUpdateExpertReference {
|
|
7
|
+
type Raw = AgentsCreateExpertReference.Raw;
|
|
8
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
|
|
5
5
|
export declare namespace CommonCodingSystemEnum {
|
|
6
|
-
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4";
|
|
6
|
+
type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam";
|
|
7
7
|
}
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.mjs";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.mjs";
|
|
53
53
|
export * from "./AgentsTextPart.mjs";
|
|
54
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.mjs";
|
|
55
56
|
export * from "./AgentsValidationError.mjs";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.mjs";
|
|
@@ -52,6 +52,7 @@ export * from "./AgentsTaskStatus.mjs";
|
|
|
52
52
|
export * from "./AgentsTaskStatusState.mjs";
|
|
53
53
|
export * from "./AgentsTextPart.mjs";
|
|
54
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
55
|
+
export * from "./AgentsUpdateExpertReference.mjs";
|
|
55
56
|
export * from "./AgentsValidationError.mjs";
|
|
56
57
|
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
57
58
|
export * from "./AgentsValidationErrorResponse.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.0-rc";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.2.0-rc";
|