runbios-sdk 0.2.14-dev.253 → 0.2.14-rc.251
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/client.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/inference.js +1 -1
- package/dist/resources/loop.d.ts +2 -3
- package/dist/resources/loop.js +2 -3
- package/dist/types.d.ts +8 -21
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -340,7 +340,7 @@ export class HttpClient {
|
|
|
340
340
|
constructor(config) {
|
|
341
341
|
// Default host stays api.runbios.ai for now; cutover to api.runbios.ai is
|
|
342
342
|
// planned once its DNS exists.
|
|
343
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-
|
|
343
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
344
344
|
this.apiKey = config.apiKey ?? envApiKey();
|
|
345
345
|
this.accessToken = config.accessToken;
|
|
346
346
|
this.orgId = config.orgId;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export declare const VERSION = "0.2.14-
|
|
39
|
+
export declare const VERSION = "0.2.14-rc.251";
|
|
40
40
|
export declare class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
readonly models: Models;
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export const VERSION = '0.2.14-
|
|
39
|
+
export const VERSION = '0.2.14-rc.251';
|
|
40
40
|
export class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
models;
|
|
@@ -336,7 +336,7 @@ export class Inference {
|
|
|
336
336
|
this.key = config.inferenceKey || envInferenceKey() || envApiKey();
|
|
337
337
|
// Same default host as HttpClient (api.runbios.ai); api.runbios.ai cutover
|
|
338
338
|
// is planned once its DNS exists — update both call sites together.
|
|
339
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-
|
|
339
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
340
340
|
this.timeout = config.timeout ?? 900_000;
|
|
341
341
|
this._http = http;
|
|
342
342
|
}
|
package/dist/resources/loop.d.ts
CHANGED
|
@@ -296,8 +296,7 @@ export declare class Loop {
|
|
|
296
296
|
*
|
|
297
297
|
* `min_new_rows` counts only work reviewed SINCE THE LAST BUILD. Counting
|
|
298
298
|
* the whole corpus would fire the rule every interval forever, because a
|
|
299
|
-
* total that has crossed a threshold stays across it.
|
|
300
|
-
* and 100 when absent: a set built from fewer is too small to learn from.
|
|
299
|
+
* total that has crossed a threshold stays across it.
|
|
301
300
|
*/
|
|
302
301
|
createBuildRule(params: LoopBuildRuleParams): Promise<LoopBuildRule>;
|
|
303
302
|
/**
|
|
@@ -796,7 +795,7 @@ export declare class Loop {
|
|
|
796
795
|
* replayed against both models on every run that finishes its comparison,
|
|
797
796
|
* and reported as two absolute numbers on a scale that does not move.
|
|
798
797
|
*
|
|
799
|
-
*
|
|
798
|
+
* 10 to 200 conversations. A named conversation with nothing to ask a model
|
|
800
799
|
* is refused rather than skipped, because pinning 47 of the 50 you chose is
|
|
801
800
|
* the set being wrong from the first day and you would never find out.
|
|
802
801
|
*
|
package/dist/resources/loop.js
CHANGED
|
@@ -372,8 +372,7 @@ export class Loop {
|
|
|
372
372
|
*
|
|
373
373
|
* `min_new_rows` counts only work reviewed SINCE THE LAST BUILD. Counting
|
|
374
374
|
* the whole corpus would fire the rule every interval forever, because a
|
|
375
|
-
* total that has crossed a threshold stays across it.
|
|
376
|
-
* and 100 when absent: a set built from fewer is too small to learn from.
|
|
375
|
+
* total that has crossed a threshold stays across it.
|
|
377
376
|
*/
|
|
378
377
|
async createBuildRule(params) {
|
|
379
378
|
const res = await this._http.fetchPost('/api/loop/build-rules', params);
|
|
@@ -1101,7 +1100,7 @@ export class Loop {
|
|
|
1101
1100
|
* replayed against both models on every run that finishes its comparison,
|
|
1102
1101
|
* and reported as two absolute numbers on a scale that does not move.
|
|
1103
1102
|
*
|
|
1104
|
-
*
|
|
1103
|
+
* 10 to 200 conversations. A named conversation with nothing to ask a model
|
|
1105
1104
|
* is refused rather than skipped, because pinning 47 of the 50 you chose is
|
|
1106
1105
|
* the set being wrong from the first day and you would never find out.
|
|
1107
1106
|
*
|
package/dist/types.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export interface BiOSConfig {
|
|
|
8
8
|
orgId?: string;
|
|
9
9
|
/** Workspace ID. Optional when using API keys (resolved from the key). Can override for multi-workspace keys. */
|
|
10
10
|
workspaceId?: string;
|
|
11
|
-
/** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api-
|
|
11
|
+
/** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api-staging.runbios.ai hostname. */
|
|
12
12
|
baseUrl?: string;
|
|
13
13
|
/** Request timeout in milliseconds. Defaults to 30000. */
|
|
14
14
|
timeout?: number;
|
|
15
15
|
/** Default per-deployment inference key. Can be overridden per inference call. */
|
|
16
16
|
inferenceKey?: string;
|
|
17
|
-
/** Inference base URL. Defaults to baseUrl, then https://api-
|
|
17
|
+
/** Inference base URL. Defaults to baseUrl, then https://api-staging.runbios.ai. */
|
|
18
18
|
inferenceBaseUrl?: string;
|
|
19
19
|
/** End-to-end inference timeout in milliseconds. Defaults to 15 minutes. */
|
|
20
20
|
inferenceTimeout?: number;
|
|
@@ -2704,9 +2704,9 @@ export interface LoopBuildRuleParams {
|
|
|
2704
2704
|
method: string;
|
|
2705
2705
|
/**
|
|
2706
2706
|
* How many rows reviewed SINCE THE LAST BUILD must exist before this fires
|
|
2707
|
-
* again. Minimum
|
|
2708
|
-
*
|
|
2709
|
-
*
|
|
2707
|
+
* again. Minimum 10. Counting the whole corpus instead would fire the rule
|
|
2708
|
+
* every interval forever, because a total that has crossed a threshold stays
|
|
2709
|
+
* across it.
|
|
2710
2710
|
*/
|
|
2711
2711
|
min_new_rows?: number;
|
|
2712
2712
|
enabled?: boolean;
|
|
@@ -3457,7 +3457,7 @@ export interface TrainingRuleBuildSpec {
|
|
|
3457
3457
|
*/
|
|
3458
3458
|
export interface LoopBuildRuleUpdateParams {
|
|
3459
3459
|
enabled?: boolean;
|
|
3460
|
-
/** Rows reviewed SINCE THE LAST BUILD before this fires again. Minimum
|
|
3460
|
+
/** Rows reviewed SINCE THE LAST BUILD before this fires again. Minimum 10. */
|
|
3461
3461
|
min_new_rows?: number;
|
|
3462
3462
|
/** The same selection `createDataset` takes, replayed verbatim. */
|
|
3463
3463
|
spec?: LoopDatasetCreateParams;
|
|
@@ -3473,11 +3473,7 @@ export interface TrainingRuleTriggerInput {
|
|
|
3473
3473
|
/** null drops the weekday, which is what a weekly rule moved to daily needs. */
|
|
3474
3474
|
cadence_weekday?: number | null;
|
|
3475
3475
|
combinator?: TrainingCombinator;
|
|
3476
|
-
/**
|
|
3477
|
-
* Conversations reviewed since the last version before the rule fires on
|
|
3478
|
-
* rows. At least 100. null removes the row floor, leaving the schedule as the
|
|
3479
|
-
* only trigger.
|
|
3480
|
-
*/
|
|
3476
|
+
/** null removes the row floor, leaving the schedule as the only trigger. */
|
|
3481
3477
|
min_new_rows?: number | null;
|
|
3482
3478
|
/** 1 to 10. Absent leaves it as it is; absent on a create means five. */
|
|
3483
3479
|
max_versions?: number;
|
|
@@ -3521,10 +3517,6 @@ export interface TrainingRuleMoneyInput {
|
|
|
3521
3517
|
eval_ceiling_cents?: number;
|
|
3522
3518
|
/** null removes the monthly cap. Absent leaves it exactly where it stands. */
|
|
3523
3519
|
monthly_ceiling_cents?: number | null;
|
|
3524
|
-
/**
|
|
3525
|
-
* The most held-back conversations one comparison scores, 10 to 500 and
|
|
3526
|
-
* never below `min_holdout_rows`. Absent on a create means 100.
|
|
3527
|
-
*/
|
|
3528
3520
|
eval_max_rows?: number;
|
|
3529
3521
|
}
|
|
3530
3522
|
export interface TrainingRuleEvaluationInput {
|
|
@@ -3533,11 +3525,6 @@ export interface TrainingRuleEvaluationInput {
|
|
|
3533
3525
|
/** null drops the override, returning to the judge's own advisory model. */
|
|
3534
3526
|
judge_model?: string | null;
|
|
3535
3527
|
graders_scope?: GradersScope;
|
|
3536
|
-
/**
|
|
3537
|
-
* The fewest held-back conversations that may decide a comparison. At least
|
|
3538
|
-
* 20, and 20 when absent on a create. A set that would hold back fewer is
|
|
3539
|
-
* not built.
|
|
3540
|
-
*/
|
|
3541
3528
|
min_holdout_rows?: number;
|
|
3542
3529
|
eval_max_tokens?: number;
|
|
3543
3530
|
}
|
|
@@ -4149,7 +4136,7 @@ export interface BenchmarkSource {
|
|
|
4149
4136
|
split?: string;
|
|
4150
4137
|
}
|
|
4151
4138
|
/**
|
|
4152
|
-
* The pin:
|
|
4139
|
+
* The pin: 10 to 200 conversations, and a judge with a rubric to measure them.
|
|
4153
4140
|
*
|
|
4154
4141
|
* A conversation with nothing to ask a model is refused rather than skipped.
|
|
4155
4142
|
* Pinning 47 of the 50 somebody chose is the set being wrong from the first
|