runbios-sdk 0.2.14-dev.254 → 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 +2 -2
- package/dist/index.js +1 -1
- package/dist/resources/inference.js +1 -1
- package/dist/resources/loop.d.ts +3 -19
- package/dist/resources/loop.js +3 -19
- package/dist/types.d.ts +9 -47
- 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;
|
|
@@ -75,7 +75,7 @@ export { Training } from './resources/training.js';
|
|
|
75
75
|
export { Wallet } from './resources/wallet.js';
|
|
76
76
|
export { GPU, type GPURecommendation } from './resources/gpu.js';
|
|
77
77
|
export { Inference, validateChatRequest, parseSSE, buildInferenceRequest, contextSizingBasis, type ContextSizingBasis, CONTEXT_DEFAULT_CEILING, CONTEXT_EDITABLE_FLOOR, type ChatMessage, type FunctionTool, type ChatCompletionParams, type ChatCompletionResponse, type ChatCompletionChunk, type InferenceVerbParams, type CompletionParams, type EmbeddingParams, type RerankParams, type AnthropicMessageParams, type ServerlessUsageWindow, type ServerlessTimeseriesMetric, type ServerlessWorkspaceLimits, type ServerlessUsageEnvelope, type ServerlessUsageOverviewResponse, type ServerlessUsageRowsResponse, type ServerlessUsageTimeseriesResponse, type ServerlessUsageDailyResponse, type ServerlessSavingsTotals, type ServerlessSavingsPeriod, type ServerlessUsageSavingsResponse, } from './resources/inference.js';
|
|
78
|
-
export type { BiOSConfig, PaginatedResponse, ApiErrorBody, AvailableGpuAlternative, CapacityMinimumRequirement, InferenceBookingAccepted, Model, ModelSearchParams, ModelSearchResponse, ModelDetailResponse, InferenceModel, InferenceModelListResponse, ModelConfig, Dataset, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetPreview, DatasetPreviewParams, DatasetImportHFParams, DatasetRegisterHFParams, DatasetHubSearchParams, DatasetHubPreviewParams, DatasetValidation, DatasetFormatVariant, DatasetFormatSpec, DatasetFormatSpecs, DatasetStorageUsage, TrainingMethod, RLHFAlgorithm, AdapterType, TrainingJobStatus, TrainingStatusFilter, TrainingCreateParams, TrainingListParams, TrainingListResponse, TrainingJob, TrainingMetrics, TrainingResourceMetrics, TrainingDeviceMetrics, MetricPoint, MetricGraphConfig, TrainingCheckpoint, TrainingLogs, TrainingLogEntry, TrainingStopResponse, TrainingResumeResponse, CanonicalTrainingRequest, TrainingPreflightDataset, TrainingPreflightWarning, TrainingPreflightResponse, TrainingCapabilityChoice, TrainingConfigFieldCapability, TrainingCapabilities, GPUChoice, WalletBalance, Transaction, TransactionListResponse, TransactionListParams, GPUInfo, GPUPricingResponse, GPUOptionsParams, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingAdvisorRecommendation, TrainingAdvisorUserShape, TrainingAdvisorJustification, TrainingAdvisorBasis, GPUOption, GPUOptionSuggestion, GPUOptionsResponse, InferenceStatus, InferenceCreateParams, InferenceUpdateParams, InferenceDeployment, InferenceDeploymentSummary, InferenceCreateResponse, InferenceListResponse, InferenceUpdateResponse, InferenceLifecycleResponse, InferenceDeleteResponse, InferenceGPUOptionMarket, InferenceGPUOption, InferenceGPUAlternative, InferenceGPUOptionsParams, InferenceGPUOptionsResponse, InferenceCanonicalRequest, InferencePreflightWarning, InferencePreflightResponse, AdapterCompatibility, AdapterCompatibilityResponse, AdapterCompatibilityParams, SupportedArchitecture, ArchitectureScope, SupportedArchitecturesResponse, ApiKey, ApiKeyScope, ApiKeyIntrospection, Organization, OrgMember, OrgInvite, Workspace, Integration, IntegrationCreateParams, StorageUsage, StorageObject, PromptTokensDetails, ChatCompletionUsage, TrainingCadence, TrainingCombinator, ServingKind, TrainingRulePausedReason, LoopTrainingMethod, TrainType, GradersScope, TrainingTrigger, TrainingRecipe, TrainingRunState, TrainingVerdict, TrainingDecision, NotifyState, EvaluationStatus, EvaluationItemStatus, EvaluationWinner, EvaluationWarningCode, ConsentVia, TrainingToolCall, TrainingMessage, TrainingRuleServing, TrainingGPURung, TrainingRule, TrainingRuleConsent, TrainingRulePreflightRefusal, TrainingRuleKeyRef, TrainingRuleKeyCheck, TrainingRulePreflight, TrainingRuleBuildSpec, TrainingRuleTriggerInput, TrainingRuleTrainingInput, TrainingRuleDeployInput, TrainingRuleMoneyInput, TrainingRuleEvaluationInput, TrainingRulePromotionInput, TrainingRuleAcceptTerms, TrainingRulePreflightRequest, TrainingRuleCreateRequest, TrainingRuleUpdateRequest, TrainingRuleConsentRequest, TrainingRuleListParams, TrainingRunPromoteRequest, TrainingRunRejectRequest, TrainingRunRollbackRequest, TrainingRunCancelRequest, TrainingRunListParams, TrainingRun, TrainingRunSummary, TrainingRunEvent, TrainingRunLinks, TrainingRunActions, EvaluationRef, EvaluationDecoding, EvaluationJudgeDimension, EvaluationDimensionScore, EvaluationGraderScore, EvaluationWarning, EvaluationMargin, JudgeAgreementDimension, JudgeAgreement, Evaluation, EvaluationItemSide, EvaluationItem, EvaluationItemListParams, JudgeAgreementParams, AgentSettings, AgentSettingsRequest, BenchmarkStatus, BenchmarkSourceKind, BenchmarkRunStatus, BenchmarkScoring, BenchmarkDimensionScore, Benchmark, BenchmarkItem, BenchmarkRun, BenchmarkHistoryPoint, BenchmarkSource, BenchmarkCreateParams, BenchmarkListParams, BenchmarkItemListParams, BenchmarkHistoryParams, BenchmarkRetireParams, TrainingRuleBenchmarkRequest, InferenceAlias, InferenceAliasRequest, TrainingRuleListResponse, TrainingRuleResponse, TrainingRuleMutationResponse, TrainingRuleDeleteResponse, TrainingRunListResponse, TrainingRunResponse, TrainingRunActionResponse, EvaluationItemsResponse, AgentSettingsResponse, InferenceAliasListResponse, InferenceAliasResponse, InferenceAliasDeleteResponse, BenchmarkListResponse, BenchmarkItemsResponse, BenchmarkHistoryResponse, TrainingRuleRunRefusalCode,
|
|
78
|
+
export type { BiOSConfig, PaginatedResponse, ApiErrorBody, AvailableGpuAlternative, CapacityMinimumRequirement, InferenceBookingAccepted, Model, ModelSearchParams, ModelSearchResponse, ModelDetailResponse, InferenceModel, InferenceModelListResponse, ModelConfig, Dataset, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetPreview, DatasetPreviewParams, DatasetImportHFParams, DatasetRegisterHFParams, DatasetHubSearchParams, DatasetHubPreviewParams, DatasetValidation, DatasetFormatVariant, DatasetFormatSpec, DatasetFormatSpecs, DatasetStorageUsage, TrainingMethod, RLHFAlgorithm, AdapterType, TrainingJobStatus, TrainingStatusFilter, TrainingCreateParams, TrainingListParams, TrainingListResponse, TrainingJob, TrainingMetrics, TrainingResourceMetrics, TrainingDeviceMetrics, MetricPoint, MetricGraphConfig, TrainingCheckpoint, TrainingLogs, TrainingLogEntry, TrainingStopResponse, TrainingResumeResponse, CanonicalTrainingRequest, TrainingPreflightDataset, TrainingPreflightWarning, TrainingPreflightResponse, TrainingCapabilityChoice, TrainingConfigFieldCapability, TrainingCapabilities, GPUChoice, WalletBalance, Transaction, TransactionListResponse, TransactionListParams, GPUInfo, GPUPricingResponse, GPUOptionsParams, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingAdvisorRecommendation, TrainingAdvisorUserShape, TrainingAdvisorJustification, TrainingAdvisorBasis, GPUOption, GPUOptionSuggestion, GPUOptionsResponse, InferenceStatus, InferenceCreateParams, InferenceUpdateParams, InferenceDeployment, InferenceDeploymentSummary, InferenceCreateResponse, InferenceListResponse, InferenceUpdateResponse, InferenceLifecycleResponse, InferenceDeleteResponse, InferenceGPUOptionMarket, InferenceGPUOption, InferenceGPUAlternative, InferenceGPUOptionsParams, InferenceGPUOptionsResponse, InferenceCanonicalRequest, InferencePreflightWarning, InferencePreflightResponse, AdapterCompatibility, AdapterCompatibilityResponse, AdapterCompatibilityParams, SupportedArchitecture, ArchitectureScope, SupportedArchitecturesResponse, ApiKey, ApiKeyScope, ApiKeyIntrospection, Organization, OrgMember, OrgInvite, Workspace, Integration, IntegrationCreateParams, StorageUsage, StorageObject, PromptTokensDetails, ChatCompletionUsage, TrainingCadence, TrainingCombinator, ServingKind, TrainingRulePausedReason, LoopTrainingMethod, TrainType, GradersScope, TrainingTrigger, TrainingRecipe, TrainingRunState, TrainingVerdict, TrainingDecision, NotifyState, EvaluationStatus, EvaluationItemStatus, EvaluationWinner, EvaluationWarningCode, ConsentVia, TrainingToolCall, TrainingMessage, TrainingRuleServing, TrainingGPURung, TrainingRule, TrainingRuleConsent, TrainingRulePreflightRefusal, TrainingRuleKeyRef, TrainingRuleKeyCheck, TrainingRulePreflight, TrainingRuleBuildSpec, TrainingRuleTriggerInput, TrainingRuleTrainingInput, TrainingRuleDeployInput, TrainingRuleMoneyInput, TrainingRuleEvaluationInput, TrainingRulePromotionInput, TrainingRuleAcceptTerms, TrainingRulePreflightRequest, TrainingRuleCreateRequest, TrainingRuleUpdateRequest, TrainingRuleConsentRequest, TrainingRuleListParams, TrainingRunPromoteRequest, TrainingRunRejectRequest, TrainingRunRollbackRequest, TrainingRunCancelRequest, TrainingRunListParams, TrainingRun, TrainingRunSummary, TrainingRunEvent, TrainingRunLinks, TrainingRunActions, EvaluationRef, EvaluationDecoding, EvaluationJudgeDimension, EvaluationDimensionScore, EvaluationGraderScore, EvaluationWarning, EvaluationMargin, JudgeAgreementDimension, JudgeAgreement, Evaluation, EvaluationItemSide, EvaluationItem, EvaluationItemListParams, JudgeAgreementParams, AgentSettings, AgentSettingsRequest, BenchmarkStatus, BenchmarkSourceKind, BenchmarkRunStatus, BenchmarkScoring, BenchmarkDimensionScore, Benchmark, BenchmarkItem, BenchmarkRun, BenchmarkHistoryPoint, BenchmarkSource, BenchmarkCreateParams, BenchmarkListParams, BenchmarkItemListParams, BenchmarkHistoryParams, BenchmarkRetireParams, TrainingRuleBenchmarkRequest, InferenceAlias, InferenceAliasRequest, TrainingRuleListResponse, TrainingRuleResponse, TrainingRuleMutationResponse, TrainingRuleDeleteResponse, TrainingRunListResponse, TrainingRunResponse, TrainingRunActionResponse, EvaluationItemsResponse, AgentSettingsResponse, InferenceAliasListResponse, InferenceAliasResponse, InferenceAliasDeleteResponse, BenchmarkListResponse, BenchmarkItemsResponse, BenchmarkHistoryResponse, TrainingRuleRunRefusalCode, TrainingRuleMonthlyLimitRefusal, LoopDatasetDeleteRefusalCode, PipelineStatus, PipelineRecipeExploration, PipelineActiveRun, PipelineVersion, Pipeline, PipelineListResponse, PipelineResponse, } from './types.js';
|
|
79
79
|
/** The closed set of run states a training run never leaves. */
|
|
80
80
|
export { TERMINAL_RUN_STATES } from './types.js';
|
|
81
81
|
/** The most versions a pipeline may be set to make. */
|
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
|
/**
|
|
@@ -576,10 +575,6 @@ export declare class Loop {
|
|
|
576
575
|
* `model_revision` is empty unless training-service actually pinned a
|
|
577
576
|
* commit; test `unreachable.length > 0` to tell a degraded pass from a
|
|
578
577
|
* refusal.
|
|
579
|
-
*
|
|
580
|
-
* A `TRAINING_NOT_ENABLED` refusal is neither: training is in beta and this
|
|
581
|
-
* organisation does not hold the grant. It is in `refusals`, never in
|
|
582
|
-
* `unreachable`, and nothing in the request can lift it.
|
|
583
578
|
*/
|
|
584
579
|
preflightTrainingRule(params: TrainingRulePreflightRequest): Promise<TrainingRulePreflight>;
|
|
585
580
|
/**
|
|
@@ -602,10 +597,6 @@ export declare class Loop {
|
|
|
602
597
|
* `terms_version` they were shown. Do not invent ceilings or price caps on
|
|
603
598
|
* their behalf.
|
|
604
599
|
*
|
|
605
|
-
* Refused `409 TRAINING_NOT_ENABLED`, with nothing saved, while training is
|
|
606
|
-
* in beta and this organisation does not hold the grant: do not retry, ask
|
|
607
|
-
* the platform team to enable it. See `TrainingRuleSaveRefusalCode`.
|
|
608
|
-
*
|
|
609
600
|
* @example
|
|
610
601
|
* ```ts
|
|
611
602
|
* const estimate = await client.loop.preflightTrainingRule(draft);
|
|
@@ -647,12 +638,6 @@ export declare class Loop {
|
|
|
647
638
|
* `consent_required`, and carries a fresh `preflight` with the new figures.
|
|
648
639
|
* Pass `expected_revision` to be refused with `REVISION_MISMATCH` rather
|
|
649
640
|
* than overwrite an edit somebody else made in the meantime.
|
|
650
|
-
*
|
|
651
|
-
* Switching a rule on, switching it into preference training or carrying
|
|
652
|
-
* `accept_terms` re-runs the preflight, and can be refused
|
|
653
|
-
* `409 TRAINING_NOT_ENABLED` like a create. A rule paused
|
|
654
|
-
* `training_not_enabled` is started again by a save of it once the
|
|
655
|
-
* organisation has been enabled.
|
|
656
641
|
*/
|
|
657
642
|
updateTrainingRule(id: string, params: TrainingRuleUpdateRequest): Promise<TrainingRuleMutationResponse>;
|
|
658
643
|
/**
|
|
@@ -669,8 +654,7 @@ export declare class Loop {
|
|
|
669
654
|
* {@link preflightTrainingRule} or from the `preflight` on the update reply,
|
|
670
655
|
* and send the `revision` those figures belong to. A stale revision is
|
|
671
656
|
* refused with `409`, which is the point: it means the amounts moved again
|
|
672
|
-
* after they were read.
|
|
673
|
-
* and this organisation does not hold the grant.
|
|
657
|
+
* after they were read.
|
|
674
658
|
*/
|
|
675
659
|
consentTrainingRule(id: string, params: TrainingRuleConsentRequest): Promise<TrainingRule>;
|
|
676
660
|
/**
|
|
@@ -811,7 +795,7 @@ export declare class Loop {
|
|
|
811
795
|
* replayed against both models on every run that finishes its comparison,
|
|
812
796
|
* and reported as two absolute numbers on a scale that does not move.
|
|
813
797
|
*
|
|
814
|
-
*
|
|
798
|
+
* 10 to 200 conversations. A named conversation with nothing to ask a model
|
|
815
799
|
* is refused rather than skipped, because pinning 47 of the 50 you chose is
|
|
816
800
|
* the set being wrong from the first day and you would never find out.
|
|
817
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);
|
|
@@ -785,10 +784,6 @@ export class Loop {
|
|
|
785
784
|
* `model_revision` is empty unless training-service actually pinned a
|
|
786
785
|
* commit; test `unreachable.length > 0` to tell a degraded pass from a
|
|
787
786
|
* refusal.
|
|
788
|
-
*
|
|
789
|
-
* A `TRAINING_NOT_ENABLED` refusal is neither: training is in beta and this
|
|
790
|
-
* organisation does not hold the grant. It is in `refusals`, never in
|
|
791
|
-
* `unreachable`, and nothing in the request can lift it.
|
|
792
787
|
*/
|
|
793
788
|
async preflightTrainingRule(params) {
|
|
794
789
|
return this._http.fetchPost('/api/loop/training-rules/preflight', params);
|
|
@@ -813,10 +808,6 @@ export class Loop {
|
|
|
813
808
|
* `terms_version` they were shown. Do not invent ceilings or price caps on
|
|
814
809
|
* their behalf.
|
|
815
810
|
*
|
|
816
|
-
* Refused `409 TRAINING_NOT_ENABLED`, with nothing saved, while training is
|
|
817
|
-
* in beta and this organisation does not hold the grant: do not retry, ask
|
|
818
|
-
* the platform team to enable it. See `TrainingRuleSaveRefusalCode`.
|
|
819
|
-
*
|
|
820
811
|
* @example
|
|
821
812
|
* ```ts
|
|
822
813
|
* const estimate = await client.loop.preflightTrainingRule(draft);
|
|
@@ -881,12 +872,6 @@ export class Loop {
|
|
|
881
872
|
* `consent_required`, and carries a fresh `preflight` with the new figures.
|
|
882
873
|
* Pass `expected_revision` to be refused with `REVISION_MISMATCH` rather
|
|
883
874
|
* than overwrite an edit somebody else made in the meantime.
|
|
884
|
-
*
|
|
885
|
-
* Switching a rule on, switching it into preference training or carrying
|
|
886
|
-
* `accept_terms` re-runs the preflight, and can be refused
|
|
887
|
-
* `409 TRAINING_NOT_ENABLED` like a create. A rule paused
|
|
888
|
-
* `training_not_enabled` is started again by a save of it once the
|
|
889
|
-
* organisation has been enabled.
|
|
890
875
|
*/
|
|
891
876
|
async updateTrainingRule(id, params) {
|
|
892
877
|
return this._http.fetchPut(`/api/loop/training-rules/${encodeURIComponent(id)}`, params);
|
|
@@ -905,8 +890,7 @@ export class Loop {
|
|
|
905
890
|
* {@link preflightTrainingRule} or from the `preflight` on the update reply,
|
|
906
891
|
* and send the `revision` those figures belong to. A stale revision is
|
|
907
892
|
* refused with `409`, which is the point: it means the amounts moved again
|
|
908
|
-
* after they were read.
|
|
909
|
-
* and this organisation does not hold the grant.
|
|
893
|
+
* after they were read.
|
|
910
894
|
*/
|
|
911
895
|
async consentTrainingRule(id, params) {
|
|
912
896
|
const res = await this._http.fetchPost(`/api/loop/training-rules/${encodeURIComponent(id)}/consent`, params);
|
|
@@ -1116,7 +1100,7 @@ export class Loop {
|
|
|
1116
1100
|
* replayed against both models on every run that finishes its comparison,
|
|
1117
1101
|
* and reported as two absolute numbers on a scale that does not move.
|
|
1118
1102
|
*
|
|
1119
|
-
*
|
|
1103
|
+
* 10 to 200 conversations. A named conversation with nothing to ask a model
|
|
1120
1104
|
* is refused rather than skipped, because pinning 47 of the 50 you chose is
|
|
1121
1105
|
* the set being wrong from the first day and you would never find out.
|
|
1122
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;
|
|
@@ -3146,13 +3146,7 @@ export type TrainingCombinator = 'and' | 'or';
|
|
|
3146
3146
|
export type ServingKind = 'serverless_slug' | 'deployment';
|
|
3147
3147
|
export type TrainingRulePausedReason = 'consent_invalid' | 'insufficient_funds' | 'authorizer_not_member' | 'model_not_trainable' | 'platform_capacity'
|
|
3148
3148
|
/** A peer was unreachable when the rule was saved, so it has not been validated yet. */
|
|
3149
|
-
| 'validation_pending'
|
|
3150
|
-
/**
|
|
3151
|
-
* Training is in beta and the rule's organisation does not hold the grant: a
|
|
3152
|
-
* run was refused with the platform's pre-launch gate. Nothing on the rule is
|
|
3153
|
-
* wrong; the platform team enables training, then a member saves the rule.
|
|
3154
|
-
*/
|
|
3155
|
-
| 'training_not_enabled';
|
|
3149
|
+
| 'validation_pending';
|
|
3156
3150
|
/**
|
|
3157
3151
|
* How a training rule trains, on the wire of the automatic-training routes.
|
|
3158
3152
|
*
|
|
@@ -3463,7 +3457,7 @@ export interface TrainingRuleBuildSpec {
|
|
|
3463
3457
|
*/
|
|
3464
3458
|
export interface LoopBuildRuleUpdateParams {
|
|
3465
3459
|
enabled?: boolean;
|
|
3466
|
-
/** Rows reviewed SINCE THE LAST BUILD before this fires again. Minimum
|
|
3460
|
+
/** Rows reviewed SINCE THE LAST BUILD before this fires again. Minimum 10. */
|
|
3467
3461
|
min_new_rows?: number;
|
|
3468
3462
|
/** The same selection `createDataset` takes, replayed verbatim. */
|
|
3469
3463
|
spec?: LoopDatasetCreateParams;
|
|
@@ -3479,11 +3473,7 @@ export interface TrainingRuleTriggerInput {
|
|
|
3479
3473
|
/** null drops the weekday, which is what a weekly rule moved to daily needs. */
|
|
3480
3474
|
cadence_weekday?: number | null;
|
|
3481
3475
|
combinator?: TrainingCombinator;
|
|
3482
|
-
/**
|
|
3483
|
-
* Conversations reviewed since the last version before the rule fires on
|
|
3484
|
-
* rows. At least 100. null removes the row floor, leaving the schedule as the
|
|
3485
|
-
* only trigger.
|
|
3486
|
-
*/
|
|
3476
|
+
/** null removes the row floor, leaving the schedule as the only trigger. */
|
|
3487
3477
|
min_new_rows?: number | null;
|
|
3488
3478
|
/** 1 to 10. Absent leaves it as it is; absent on a create means five. */
|
|
3489
3479
|
max_versions?: number;
|
|
@@ -3527,10 +3517,6 @@ export interface TrainingRuleMoneyInput {
|
|
|
3527
3517
|
eval_ceiling_cents?: number;
|
|
3528
3518
|
/** null removes the monthly cap. Absent leaves it exactly where it stands. */
|
|
3529
3519
|
monthly_ceiling_cents?: number | null;
|
|
3530
|
-
/**
|
|
3531
|
-
* The most held-back conversations one comparison scores, 10 to 500 and
|
|
3532
|
-
* never below `min_holdout_rows`. Absent on a create means 100.
|
|
3533
|
-
*/
|
|
3534
3520
|
eval_max_rows?: number;
|
|
3535
3521
|
}
|
|
3536
3522
|
export interface TrainingRuleEvaluationInput {
|
|
@@ -3539,11 +3525,6 @@ export interface TrainingRuleEvaluationInput {
|
|
|
3539
3525
|
/** null drops the override, returning to the judge's own advisory model. */
|
|
3540
3526
|
judge_model?: string | null;
|
|
3541
3527
|
graders_scope?: GradersScope;
|
|
3542
|
-
/**
|
|
3543
|
-
* The fewest held-back conversations that may decide a comparison. At least
|
|
3544
|
-
* 20, and 20 when absent on a create. A set that would hold back fewer is
|
|
3545
|
-
* not built.
|
|
3546
|
-
*/
|
|
3547
3528
|
min_holdout_rows?: number;
|
|
3548
3529
|
eval_max_tokens?: number;
|
|
3549
3530
|
}
|
|
@@ -4155,7 +4136,7 @@ export interface BenchmarkSource {
|
|
|
4155
4136
|
split?: string;
|
|
4156
4137
|
}
|
|
4157
4138
|
/**
|
|
4158
|
-
* The pin:
|
|
4139
|
+
* The pin: 10 to 200 conversations, and a judge with a rubric to measure them.
|
|
4159
4140
|
*
|
|
4160
4141
|
* A conversation with nothing to ask a model is refused rather than skipped.
|
|
4161
4142
|
* Pinning 47 of the 50 somebody chose is the set being wrong from the first
|
|
@@ -4235,25 +4216,6 @@ export interface TrainingRuleBenchmarkRequest {
|
|
|
4235
4216
|
* `train_rows`, `holdout_rows` and the `floor` it needed.
|
|
4236
4217
|
*/
|
|
4237
4218
|
export type TrainingRuleRunRefusalCode = 'CONSENT_REQUIRED' | 'RULE_PAUSED' | 'RUN_ACTIVE' | 'VERSION_LIMIT_REACHED' | 'MONTHLY_LIMIT_REACHED' | 'AGENT_OFF' | 'NOT_ENOUGH_ROWS';
|
|
4238
|
-
/**
|
|
4239
|
-
* The machine codes a SAVE of a training rule is refused with when the
|
|
4240
|
-
* preflight it runs refuses: `createTrainingRule`, an `updateTrainingRule`
|
|
4241
|
-
* that switches a rule on or into preference training or carries
|
|
4242
|
-
* `accept_terms`, and `consentTrainingRule`. Every other preflight refusal is
|
|
4243
|
-
* a `400` carrying the peer's own sentence; `preflightTrainingRule` answers
|
|
4244
|
-
* `200` with the same codes in `refusals`.
|
|
4245
|
-
*
|
|
4246
|
-
* - `TRAINING_NOT_ENABLED` (409): training is in beta and this organisation
|
|
4247
|
-
* does not hold the grant. Nothing is saved and nothing in the request can
|
|
4248
|
-
* lift it, so do not retry: ask the platform team to enable training for
|
|
4249
|
-
* the organisation. It is answered ahead of every other refusal. A rule that
|
|
4250
|
-
* meets it at fire time is paused `training_not_enabled` instead (see
|
|
4251
|
-
* {@link TrainingRulePausedReason}).
|
|
4252
|
-
* - `METHOD_NOT_ENABLED` (422): a training method the platform has not enabled.
|
|
4253
|
-
* - `CEILING_TOO_LOW` (422): a ceiling cannot buy the minimum hours at the
|
|
4254
|
-
* accepted price cap.
|
|
4255
|
-
*/
|
|
4256
|
-
export type TrainingRuleSaveRefusalCode = 'TRAINING_NOT_ENABLED' | 'METHOD_NOT_ENABLED' | 'CEILING_TOO_LOW';
|
|
4257
4219
|
/**
|
|
4258
4220
|
* The machine codes `deleteDataset` can be refused with.
|
|
4259
4221
|
*
|