@dylanrussell/agent-router 2.0.2 → 2.1.1

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/plugin.d.ts CHANGED
@@ -37,7 +37,18 @@ declare const Model: z.ZodObject<{
37
37
  type Selection = z.infer<typeof Model>;
38
38
  /** No network calls or disk writes: selection happens synchronously at next-turn admission. */
39
39
  declare function createFailover(routes: Record<string, RoutingEntry>, notice: (message: string) => Promise<void>): {
40
+ pending(sessionID: string): {
41
+ providerID: string;
42
+ modelID: string;
43
+ variant?: string | undefined;
44
+ } | undefined;
40
45
  active(sessionID: string): boolean;
46
+ /** Register an admission already selected by a separate policy; no retry occurs. */
47
+ admit(sessionID: string, message: {
48
+ id: string;
49
+ agent: string;
50
+ model: Selection;
51
+ }): void;
41
52
  disable(): void;
42
53
  message(input: {
43
54
  sessionID: string;