@runtypelabs/sdk 6.3.0 → 6.3.2
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 +8 -3
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6362,7 +6362,7 @@ var Runtype = class {
|
|
|
6362
6362
|
|
|
6363
6363
|
// src/version.ts
|
|
6364
6364
|
var FALLBACK_VERSION = "0.0.0";
|
|
6365
|
-
var SDK_VERSION = "6.3.
|
|
6365
|
+
var SDK_VERSION = "6.3.2".length > 0 ? "6.3.2" : FALLBACK_VERSION;
|
|
6366
6366
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6367
6367
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6368
6368
|
|
|
@@ -11498,8 +11498,13 @@ var _AgentsEndpoint = class _AgentsEndpoint {
|
|
|
11498
11498
|
);
|
|
11499
11499
|
}
|
|
11500
11500
|
/**
|
|
11501
|
-
* Client-side
|
|
11502
|
-
*
|
|
11501
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
11502
|
+
*
|
|
11503
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
11504
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
11505
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
11506
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
11507
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
11503
11508
|
*/
|
|
11504
11509
|
detectTaskCompletion(output) {
|
|
11505
11510
|
const upper = output.toUpperCase();
|
package/dist/index.d.cts
CHANGED
|
@@ -6561,7 +6561,7 @@ interface paths {
|
|
|
6561
6561
|
"application/json": components["schemas"]["Error"];
|
|
6562
6562
|
};
|
|
6563
6563
|
};
|
|
6564
|
-
/** @description
|
|
6564
|
+
/** @description Forbidden. Either the client token is inactive or the origin is not allowed, or the tenancy lock-down refused the execution: the agent requires an end-user scope and no valid `identityProof` was supplied (`end_user_scope_required`), or this session's conversation record belongs to a different signed-in end user (`conversation_scope_mismatch`; start a new conversation). */
|
|
6565
6565
|
403: {
|
|
6566
6566
|
headers: {
|
|
6567
6567
|
[name: string]: unknown;
|
|
@@ -42456,6 +42456,7 @@ interface components {
|
|
|
42456
42456
|
input: number;
|
|
42457
42457
|
output: number;
|
|
42458
42458
|
};
|
|
42459
|
+
totalTokensUsed?: number;
|
|
42459
42460
|
/** @enum {string} */
|
|
42460
42461
|
type: "execution_complete";
|
|
42461
42462
|
} | {
|
|
@@ -42764,6 +42765,7 @@ interface components {
|
|
|
42764
42765
|
stepId?: string;
|
|
42765
42766
|
success: boolean;
|
|
42766
42767
|
toolCallId: string;
|
|
42768
|
+
toolCost?: number;
|
|
42767
42769
|
toolName?: string;
|
|
42768
42770
|
/** @enum {string} */
|
|
42769
42771
|
type: "tool_complete";
|
|
@@ -52453,8 +52455,13 @@ declare class AgentsEndpoint {
|
|
|
52453
52455
|
/** Stop phrases that indicate the agent considers its task complete. */
|
|
52454
52456
|
private static readonly STOP_PHRASES;
|
|
52455
52457
|
/**
|
|
52456
|
-
* Client-side
|
|
52457
|
-
*
|
|
52458
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
52459
|
+
*
|
|
52460
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
52461
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
52462
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
52463
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
52464
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
52458
52465
|
*/
|
|
52459
52466
|
private detectTaskCompletion;
|
|
52460
52467
|
private resolveReservedOutputTokens;
|
package/dist/index.d.ts
CHANGED
|
@@ -6561,7 +6561,7 @@ interface paths {
|
|
|
6561
6561
|
"application/json": components["schemas"]["Error"];
|
|
6562
6562
|
};
|
|
6563
6563
|
};
|
|
6564
|
-
/** @description
|
|
6564
|
+
/** @description Forbidden. Either the client token is inactive or the origin is not allowed, or the tenancy lock-down refused the execution: the agent requires an end-user scope and no valid `identityProof` was supplied (`end_user_scope_required`), or this session's conversation record belongs to a different signed-in end user (`conversation_scope_mismatch`; start a new conversation). */
|
|
6565
6565
|
403: {
|
|
6566
6566
|
headers: {
|
|
6567
6567
|
[name: string]: unknown;
|
|
@@ -42456,6 +42456,7 @@ interface components {
|
|
|
42456
42456
|
input: number;
|
|
42457
42457
|
output: number;
|
|
42458
42458
|
};
|
|
42459
|
+
totalTokensUsed?: number;
|
|
42459
42460
|
/** @enum {string} */
|
|
42460
42461
|
type: "execution_complete";
|
|
42461
42462
|
} | {
|
|
@@ -42764,6 +42765,7 @@ interface components {
|
|
|
42764
42765
|
stepId?: string;
|
|
42765
42766
|
success: boolean;
|
|
42766
42767
|
toolCallId: string;
|
|
42768
|
+
toolCost?: number;
|
|
42767
42769
|
toolName?: string;
|
|
42768
42770
|
/** @enum {string} */
|
|
42769
42771
|
type: "tool_complete";
|
|
@@ -52453,8 +52455,13 @@ declare class AgentsEndpoint {
|
|
|
52453
52455
|
/** Stop phrases that indicate the agent considers its task complete. */
|
|
52454
52456
|
private static readonly STOP_PHRASES;
|
|
52455
52457
|
/**
|
|
52456
|
-
* Client-side
|
|
52457
|
-
*
|
|
52458
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
52459
|
+
*
|
|
52460
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
52461
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
52462
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
52463
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
52464
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
52458
52465
|
*/
|
|
52459
52466
|
private detectTaskCompletion;
|
|
52460
52467
|
private resolveReservedOutputTokens;
|
package/dist/index.mjs
CHANGED
|
@@ -6175,7 +6175,7 @@ var Runtype = class {
|
|
|
6175
6175
|
|
|
6176
6176
|
// src/version.ts
|
|
6177
6177
|
var FALLBACK_VERSION = "0.0.0";
|
|
6178
|
-
var SDK_VERSION = "6.3.
|
|
6178
|
+
var SDK_VERSION = "6.3.2".length > 0 ? "6.3.2" : FALLBACK_VERSION;
|
|
6179
6179
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6180
6180
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6181
6181
|
|
|
@@ -11311,8 +11311,13 @@ var _AgentsEndpoint = class _AgentsEndpoint {
|
|
|
11311
11311
|
);
|
|
11312
11312
|
}
|
|
11313
11313
|
/**
|
|
11314
|
-
* Client-side
|
|
11315
|
-
*
|
|
11314
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
11315
|
+
*
|
|
11316
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
11317
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
11318
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
11319
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
11320
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
11316
11321
|
*/
|
|
11317
11322
|
detectTaskCompletion(output) {
|
|
11318
11323
|
const upper = output.toUpperCase();
|
package/package.json
CHANGED