daishi-sdk 0.2.17 → 0.2.18
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/generated.d.ts +30 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export interface Experiment {
|
|
|
130
130
|
pilot: boolean;
|
|
131
131
|
name_commit_min_hex: number;
|
|
132
132
|
creation_sha256: string | null;
|
|
133
|
+
seed_source: ExperimentSeedSource;
|
|
133
134
|
metric: 'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share';
|
|
134
135
|
secondary_metrics: Array<'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share'>;
|
|
135
136
|
rule: StoppingRule;
|
|
@@ -164,6 +165,7 @@ export interface ExperimentReport {
|
|
|
164
165
|
pilot: boolean;
|
|
165
166
|
name_commit_min_hex: number;
|
|
166
167
|
creation_sha256: string | null;
|
|
168
|
+
seed_source: ExperimentSeedSource;
|
|
167
169
|
metric: 'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share';
|
|
168
170
|
analysis_scale: 'metric' | 'negative_rank' | 'log';
|
|
169
171
|
rule: StoppingRule;
|
|
@@ -746,6 +748,34 @@ export interface Cost {
|
|
|
746
748
|
total_usd: number;
|
|
747
749
|
agent_turns: number;
|
|
748
750
|
}
|
|
751
|
+
export interface ExperimentSeedSource {
|
|
752
|
+
kind: 'beacon' | 'server';
|
|
753
|
+
beacon: Beacon | null;
|
|
754
|
+
anchor: Anchor | null;
|
|
755
|
+
drawn_at_ms: number | null;
|
|
756
|
+
fallback: Fallback | null;
|
|
757
|
+
derivation: string | null;
|
|
758
|
+
}
|
|
759
|
+
export interface Beacon {
|
|
760
|
+
name: 'drand';
|
|
761
|
+
chain: string;
|
|
762
|
+
label: string;
|
|
763
|
+
world_draw: 'vary' | 'pinned' | 'none';
|
|
764
|
+
round: number | null;
|
|
765
|
+
round_at_ms: number | null;
|
|
766
|
+
randomness: string | null;
|
|
767
|
+
url: string | null;
|
|
768
|
+
}
|
|
769
|
+
export interface Anchor {
|
|
770
|
+
what: 'design' | 'creation';
|
|
771
|
+
sha256: string;
|
|
772
|
+
at_ms: number;
|
|
773
|
+
clock: 'rfc3161' | 'daishi';
|
|
774
|
+
}
|
|
775
|
+
export interface Fallback {
|
|
776
|
+
reason: string;
|
|
777
|
+
at_ms: number;
|
|
778
|
+
}
|
|
749
779
|
export interface StoppingRule {
|
|
750
780
|
kind: 'fixed' | 'anytime';
|
|
751
781
|
alpha: number;
|
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.
|
|
3
|
+
export declare const VERSION = "0.2.18";
|
|
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.
|
|
3
|
+
export const VERSION = '0.2.18';
|
|
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