mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 13:22:11 +03:00
27 lines
572 B
TypeScript
27 lines
572 B
TypeScript
/**
|
|
* Combo — a routing group that distributes requests across provider nodes.
|
|
*/
|
|
export interface Combo {
|
|
id: string;
|
|
name: string;
|
|
model: string;
|
|
strategy: ComboStrategy;
|
|
isActive: boolean;
|
|
nodes: ComboNode[];
|
|
maxRetries: number;
|
|
retryDelayMs: number;
|
|
timeoutMs: number;
|
|
healthCheckEnabled: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
|
|
export type ComboStrategy = "priority" | "weighted" | "round-robin" | "context-relay";
|
|
|
|
export interface ComboNode {
|
|
connectionId: string;
|
|
provider: string;
|
|
weight: number;
|
|
priority: number;
|
|
}
|