@runtypelabs/sdk 10.3.0 → 10.3.1
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 +1 -1
- package/dist/index.d.cts +49 -3
- package/dist/index.d.ts +49 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -14154,7 +14154,7 @@ function transformQueryParams(params) {
|
|
|
14154
14154
|
|
|
14155
14155
|
// src/version.ts
|
|
14156
14156
|
var FALLBACK_VERSION = "0.0.0";
|
|
14157
|
-
var SDK_VERSION = "10.3.
|
|
14157
|
+
var SDK_VERSION = "10.3.1".length > 0 ? "10.3.1" : FALLBACK_VERSION;
|
|
14158
14158
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
14159
14159
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
14160
14160
|
|
package/dist/index.d.cts
CHANGED
|
@@ -14104,7 +14104,30 @@ interface paths {
|
|
|
14104
14104
|
type: "reasoning";
|
|
14105
14105
|
})[];
|
|
14106
14106
|
/** @enum {string} */
|
|
14107
|
-
role: "system" | "user" | "assistant";
|
|
14107
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
14108
|
+
/** @description Assistant messages only. Every entry must be answered by the next tool message. */
|
|
14109
|
+
toolCalls?: {
|
|
14110
|
+
/** @default {} */
|
|
14111
|
+
args?: {
|
|
14112
|
+
[key: string]: unknown;
|
|
14113
|
+
};
|
|
14114
|
+
providerOptions?: {
|
|
14115
|
+
[key: string]: unknown;
|
|
14116
|
+
};
|
|
14117
|
+
toolCallId: string;
|
|
14118
|
+
toolName: string;
|
|
14119
|
+
}[];
|
|
14120
|
+
/** @description Tool messages only, and required on them. */
|
|
14121
|
+
toolResults?: {
|
|
14122
|
+
providerOptions?: {
|
|
14123
|
+
[key: string]: unknown;
|
|
14124
|
+
};
|
|
14125
|
+
/** @description Whatever the tool returned. */
|
|
14126
|
+
result?: unknown;
|
|
14127
|
+
/** @description Must answer a toolCalls entry issued earlier. */
|
|
14128
|
+
toolCallId: string;
|
|
14129
|
+
toolName: string;
|
|
14130
|
+
}[];
|
|
14108
14131
|
}[];
|
|
14109
14132
|
toolOutputs?: {
|
|
14110
14133
|
[key: string]: unknown;
|
|
@@ -14242,7 +14265,7 @@ interface paths {
|
|
|
14242
14265
|
"application/json": {
|
|
14243
14266
|
/** @description The execution ID to resume */
|
|
14244
14267
|
executionId: string;
|
|
14245
|
-
/** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
|
|
14268
|
+
/** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Prior tool turns use the `/v1/dispatch` message shape: an assistant message with `toolCalls`, answered by a `tool` message with `toolResults`. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
|
|
14246
14269
|
messages?: {
|
|
14247
14270
|
content: string | ({
|
|
14248
14271
|
text: string;
|
|
@@ -14268,7 +14291,30 @@ interface paths {
|
|
|
14268
14291
|
type: "reasoning";
|
|
14269
14292
|
})[];
|
|
14270
14293
|
/** @enum {string} */
|
|
14271
|
-
role: "system" | "user" | "assistant";
|
|
14294
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
14295
|
+
/** @description Assistant messages only. Every entry must be answered by the next tool message. */
|
|
14296
|
+
toolCalls?: {
|
|
14297
|
+
/** @default {} */
|
|
14298
|
+
args?: {
|
|
14299
|
+
[key: string]: unknown;
|
|
14300
|
+
};
|
|
14301
|
+
providerOptions?: {
|
|
14302
|
+
[key: string]: unknown;
|
|
14303
|
+
};
|
|
14304
|
+
toolCallId: string;
|
|
14305
|
+
toolName: string;
|
|
14306
|
+
}[];
|
|
14307
|
+
/** @description Tool messages only, and required on them. */
|
|
14308
|
+
toolResults?: {
|
|
14309
|
+
providerOptions?: {
|
|
14310
|
+
[key: string]: unknown;
|
|
14311
|
+
};
|
|
14312
|
+
/** @description Whatever the tool returned. */
|
|
14313
|
+
result?: unknown;
|
|
14314
|
+
/** @description Must answer a toolCalls entry issued earlier. */
|
|
14315
|
+
toolCallId: string;
|
|
14316
|
+
toolName: string;
|
|
14317
|
+
}[];
|
|
14272
14318
|
}[];
|
|
14273
14319
|
/**
|
|
14274
14320
|
* @description Whether to stream the response via SSE
|
package/dist/index.d.ts
CHANGED
|
@@ -14104,7 +14104,30 @@ interface paths {
|
|
|
14104
14104
|
type: "reasoning";
|
|
14105
14105
|
})[];
|
|
14106
14106
|
/** @enum {string} */
|
|
14107
|
-
role: "system" | "user" | "assistant";
|
|
14107
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
14108
|
+
/** @description Assistant messages only. Every entry must be answered by the next tool message. */
|
|
14109
|
+
toolCalls?: {
|
|
14110
|
+
/** @default {} */
|
|
14111
|
+
args?: {
|
|
14112
|
+
[key: string]: unknown;
|
|
14113
|
+
};
|
|
14114
|
+
providerOptions?: {
|
|
14115
|
+
[key: string]: unknown;
|
|
14116
|
+
};
|
|
14117
|
+
toolCallId: string;
|
|
14118
|
+
toolName: string;
|
|
14119
|
+
}[];
|
|
14120
|
+
/** @description Tool messages only, and required on them. */
|
|
14121
|
+
toolResults?: {
|
|
14122
|
+
providerOptions?: {
|
|
14123
|
+
[key: string]: unknown;
|
|
14124
|
+
};
|
|
14125
|
+
/** @description Whatever the tool returned. */
|
|
14126
|
+
result?: unknown;
|
|
14127
|
+
/** @description Must answer a toolCalls entry issued earlier. */
|
|
14128
|
+
toolCallId: string;
|
|
14129
|
+
toolName: string;
|
|
14130
|
+
}[];
|
|
14108
14131
|
}[];
|
|
14109
14132
|
toolOutputs?: {
|
|
14110
14133
|
[key: string]: unknown;
|
|
@@ -14242,7 +14265,7 @@ interface paths {
|
|
|
14242
14265
|
"application/json": {
|
|
14243
14266
|
/** @description The execution ID to resume */
|
|
14244
14267
|
executionId: string;
|
|
14245
|
-
/** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
|
|
14268
|
+
/** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Prior tool turns use the `/v1/dispatch` message shape: an assistant message with `toolCalls`, answered by a `tool` message with `toolResults`. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
|
|
14246
14269
|
messages?: {
|
|
14247
14270
|
content: string | ({
|
|
14248
14271
|
text: string;
|
|
@@ -14268,7 +14291,30 @@ interface paths {
|
|
|
14268
14291
|
type: "reasoning";
|
|
14269
14292
|
})[];
|
|
14270
14293
|
/** @enum {string} */
|
|
14271
|
-
role: "system" | "user" | "assistant";
|
|
14294
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
14295
|
+
/** @description Assistant messages only. Every entry must be answered by the next tool message. */
|
|
14296
|
+
toolCalls?: {
|
|
14297
|
+
/** @default {} */
|
|
14298
|
+
args?: {
|
|
14299
|
+
[key: string]: unknown;
|
|
14300
|
+
};
|
|
14301
|
+
providerOptions?: {
|
|
14302
|
+
[key: string]: unknown;
|
|
14303
|
+
};
|
|
14304
|
+
toolCallId: string;
|
|
14305
|
+
toolName: string;
|
|
14306
|
+
}[];
|
|
14307
|
+
/** @description Tool messages only, and required on them. */
|
|
14308
|
+
toolResults?: {
|
|
14309
|
+
providerOptions?: {
|
|
14310
|
+
[key: string]: unknown;
|
|
14311
|
+
};
|
|
14312
|
+
/** @description Whatever the tool returned. */
|
|
14313
|
+
result?: unknown;
|
|
14314
|
+
/** @description Must answer a toolCalls entry issued earlier. */
|
|
14315
|
+
toolCallId: string;
|
|
14316
|
+
toolName: string;
|
|
14317
|
+
}[];
|
|
14272
14318
|
}[];
|
|
14273
14319
|
/**
|
|
14274
14320
|
* @description Whether to stream the response via SSE
|
package/dist/index.mjs
CHANGED
|
@@ -13938,7 +13938,7 @@ function transformQueryParams(params) {
|
|
|
13938
13938
|
|
|
13939
13939
|
// src/version.ts
|
|
13940
13940
|
var FALLBACK_VERSION = "0.0.0";
|
|
13941
|
-
var SDK_VERSION = "10.3.
|
|
13941
|
+
var SDK_VERSION = "10.3.1".length > 0 ? "10.3.1" : FALLBACK_VERSION;
|
|
13942
13942
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
13943
13943
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
13944
13944
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.61.
|
|
27
|
+
"@runtypelabs/shared": "3.61.1",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsup": "^8.0.2",
|
|
30
30
|
"typescript": "^6.0.3",
|