Skip to main content

TrafficShape

@retinue/monorepo


@retinue/monorepo / backend/src / TrafficShape

Type Alias: TrafficShape

TrafficShape = object

Defined in: backend/src/loadtest/scenario.ts:23

Properties​

approvalRate​

readonly approvalRate: number

Defined in: backend/src/loadtest/scenario.ts:31

Fraction of runs that pause for an approval.


externalActionRate​

readonly externalActionRate: number

Defined in: backend/src/loadtest/scenario.ts:29

Fraction of runs that call a tool with an external effect.


modelLatencyMs​

readonly modelLatencyMs: number

Defined in: backend/src/loadtest/scenario.ts:27

Simulated model latency per step.


providerTimeoutRate​

readonly providerTimeoutRate: number

Defined in: backend/src/loadtest/scenario.ts:33

Fraction of steps where the provider times out before eventually succeeding.


rateLimitRate​

readonly rateLimitRate: number

Defined in: backend/src/loadtest/scenario.ts:35

Fraction of steps the provider rate-limits.


steps​

readonly steps: number

Defined in: backend/src/loadtest/scenario.ts:25

Steps a run takes before completing. More steps means more checkpoints and more to lose on a kill.