@crewhaus/ir 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -152,6 +152,9 @@ export type IrModelPool = {
152
152
  readonly minSamplesPerArm?: number;
153
153
  readonly costRefUsd?: number;
154
154
  readonly latencyRefMs?: number;
155
+ readonly explorationRate?: number;
156
+ readonly seed?: string;
157
+ readonly bandit?: "epsilon-greedy" | "thompson";
155
158
  };
156
159
  };
157
160
  /**
@@ -770,6 +773,8 @@ export type IrPipelineV0 = {
770
773
  readonly agent: {
771
774
  readonly model: string;
772
775
  readonly instructions: string;
776
+ /** Adaptive model routing — N-candidate pool. Absent → single-model. */
777
+ readonly modelPool?: IrModelPool;
773
778
  };
774
779
  readonly retrieve: {
775
780
  readonly embedderModel: string;
@@ -865,6 +870,8 @@ export type IrResearchV0 = {
865
870
  readonly agent: {
866
871
  readonly model: string;
867
872
  readonly instructions: string;
873
+ /** Adaptive model routing — N-candidate pool. Absent → single-model. */
874
+ readonly modelPool?: IrModelPool;
868
875
  };
869
876
  /** Default research goal. The daemon's `--goal "..."` flag overrides. */
870
877
  readonly goal: string;
@@ -910,6 +917,8 @@ export type IrBatchV0 = {
910
917
  readonly agent: {
911
918
  readonly model: string;
912
919
  readonly instructions: string;
920
+ /** Adaptive model routing — N-candidate pool. Absent → single-model. */
921
+ readonly modelPool?: IrModelPool;
913
922
  };
914
923
  readonly queue: {
915
924
  readonly adapter: IrBatchQueueAdapter;
@@ -990,6 +999,8 @@ export type IrBrowserV0 = {
990
999
  readonly agent: {
991
1000
  readonly model: string;
992
1001
  readonly instructions: string;
1002
+ /** Adaptive model routing — N-candidate pool. Absent → single-model. */
1003
+ readonly modelPool?: IrModelPool;
993
1004
  };
994
1005
  readonly driver: {
995
1006
  readonly backend: IrBrowserBackend;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/ir",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Canonical typed intermediate representation",
6
6
  "main": "dist/index.js",