27 lines
1.5 KiB
TypeScript
27 lines
1.5 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { LegacyStaticWeightsExperimentationConfig } from "./LegacyStaticWeightsExperimentationConfig";
|
|
import type { LegacyUniformExperimentationConfig } from "./LegacyUniformExperimentationConfig";
|
|
import type { StaticExperimentationConfig } from "./StaticExperimentationConfig";
|
|
import type { UninitializedAdaptiveExperimentationConfig } from "./UninitializedAdaptiveExperimentationConfig";
|
|
import type { UninitializedExperimentationConfig } from "./UninitializedExperimentationConfig";
|
|
import type { UninitializedTrackAndStopExperimentationConfig } from "./UninitializedTrackAndStopExperimentationConfig";
|
|
|
|
/**
|
|
* Wrapper struct that holds the base experimentation config plus namespace-specific configs.
|
|
* This is the type used in the TOML config to allow both a default config and per-namespace overrides.
|
|
*/
|
|
export type UninitializedExperimentationConfigWithNamespaces = {
|
|
/**
|
|
* Namespace-specific experimentation configs
|
|
*/
|
|
namespaces: { [key in string]: UninitializedExperimentationConfig };
|
|
} & (
|
|
| ({ type: "static" } & StaticExperimentationConfig)
|
|
| ({ type: "adaptive" } & UninitializedAdaptiveExperimentationConfig)
|
|
| ({ type: "static_weights" } & LegacyStaticWeightsExperimentationConfig)
|
|
| ({ type: "uniform" } & LegacyUniformExperimentationConfig)
|
|
| ({
|
|
type: "track_and_stop";
|
|
} & UninitializedTrackAndStopExperimentationConfig)
|
|
);
|