daishi-sdk 0.2.19 → 0.2.20

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.
@@ -174,6 +174,7 @@ export interface ExperimentReport {
174
174
  rule_text: string;
175
175
  loss_tolerance: number | null;
176
176
  max_total_spend_usd: number | null;
177
+ focal: ExperimentReportFocal;
177
178
  arms: ExperimentReportArm[];
178
179
  pairs: ExperimentReportPair[];
179
180
  comparisons: ExperimentReportComparison[];
@@ -183,6 +184,7 @@ export interface ExperimentReport {
183
184
  completeness: ExperimentReportCompleteness;
184
185
  interference: ExperimentReportInterference;
185
186
  verdict: string;
187
+ limitations: ExperimentReportLimitation[];
186
188
  plain: string;
187
189
  what_differed: ExperimentReportWhatDiffered[];
188
190
  cost: Cost;
@@ -820,6 +822,11 @@ export interface ExperimentDesign {
820
822
  standing: 'declared' | 'named' | 'after';
821
823
  name_prefix: string | null;
822
824
  }
825
+ export interface ExperimentReportFocal {
826
+ seats: number[] | null;
827
+ background: number[];
828
+ text: string;
829
+ }
823
830
  export interface ExperimentReportArm {
824
831
  index: number;
825
832
  label: string;
@@ -829,6 +836,7 @@ export interface ExperimentReportArm {
829
836
  differs_from_control: string[];
830
837
  trials: ExperimentReportArmTrials;
831
838
  score: ExperimentReportArmScore | null;
839
+ background: ExperimentReportArmBackground | null;
832
840
  cost_usd: number;
833
841
  agent_turns: number;
834
842
  usage: JsonObject;
@@ -851,6 +859,14 @@ export interface ExperimentReportArmScore {
851
859
  sd: number | null;
852
860
  ci: Interval | null;
853
861
  }
862
+ export interface ExperimentReportArmBackground {
863
+ seats: number;
864
+ mean: number;
865
+ iqm: number;
866
+ median: number;
867
+ sd: number | null;
868
+ ci: Interval | null;
869
+ }
854
870
  export interface ExperimentReportArmHealth {
855
871
  measured_seats: number;
856
872
  calls: number;
@@ -1017,6 +1033,10 @@ export interface ExperimentReportInterferencePerArm {
1017
1033
  retries: number;
1018
1034
  per_100_calls: number | null;
1019
1035
  }
1036
+ export interface ExperimentReportLimitation {
1037
+ kind: 'construct' | 'access' | 'sample' | 'selection' | 'version' | 'measurement' | 'scope';
1038
+ text: string;
1039
+ }
1020
1040
  export interface ExperimentReportWhatDiffered {
1021
1041
  arm: number;
1022
1042
  label: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Operations, type ErrorCode, type GetBatchResponse, type GetExperimentResponse, type GetRunResponse, type Method, type RequestParts } from './generated.js';
2
2
  export * from './generated.js';
3
- export declare const VERSION = "0.2.19";
3
+ export declare const VERSION = "0.2.20";
4
4
  export declare const DEFAULT_BASE_URL = "https://daishi.ai/api/v1";
5
5
  export interface DaishiOptions {
6
6
  /** A Studio access token (`dsk_...`). Default: the `DAISHI_TOKEN` environment variable. */
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Operations } from './generated.js';
2
2
  export * from './generated.js';
3
- export const VERSION = '0.2.19';
3
+ export const VERSION = '0.2.20';
4
4
  export const DEFAULT_BASE_URL = 'https://daishi.ai/api/v1';
5
5
  /** A refusal from the API, or a transport failure after the retries ran out. */
6
6
  export class DaishiError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daishi-sdk",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Typed client for the Daishi Studio API: scenarios, runs, series batches and paired experiments, with retries and waiting helpers.",
5
5
  "keywords": [
6
6
  "daishi",