Supported Types
PercentileLatencyCutoffs
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
preferredMaxLatency := components.CreatePreferredMaxLatencyNumber(float64{/* values here */})
preferredMaxLatency := components.CreatePreferredMaxLatencyPercentileLatencyCutoffs(components.PercentileLatencyCutoffs{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch preferredMaxLatency.Type {
case components.PreferredMaxLatencyTypeNumber:
// preferredMaxLatency.Number is populated
case components.PreferredMaxLatencyTypePercentileLatencyCutoffs:
// preferredMaxLatency.PercentileLatencyCutoffs is populated
}