MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / InitializeBackoff

Function InitializeBackoff

internal/route/route.go:236–244  ·  view source on GitHub ↗
(strategy string, dur time.Duration)

Source from the content-addressed store, hash-verified

234}
235
236func InitializeBackoff(strategy string, dur time.Duration) backoff.BackOff {
237 if strategy == "exponential" {
238 b := backoff.NewExponentialBackOff()
239
240 return b
241 }
242
243 return backoff.NewConstantBackOff(dur)
244}
245
246func (r *Route) RunStepsV2(req *Request, rec recorder, log *zap.Logger, kc *key.ResponseKey) (*Response, error) {
247 if len(r.Steps) == 0 {

Callers 1

RunStepsV2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected