Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
reconnect_policy.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
12#pragma once
13
15
16#include <cstdint>
17
18namespace entropic {
19
28public:
37 ReconnectPolicy(uint32_t base_delay_ms = 1000,
38 uint32_t max_delay_ms = 60000,
39 uint32_t max_retries = 5,
40 double backoff_factor = 2.0);
41
47 explicit ReconnectPolicy(const ReconnectConfig& config);
48
55 uint32_t delay_ms(uint32_t attempt) const;
56
63 bool exhausted(uint32_t attempt) const;
64
65private:
66 uint32_t base_delay_ms_;
67 uint32_t max_delay_ms_;
68 uint32_t max_retries_;
69 double backoff_factor_;
70};
71
72} // namespace entropic
Exponential backoff with jitter for reconnection attempts.
bool exhausted(uint32_t attempt) const
Check if retries are exhausted.
uint32_t delay_ms(uint32_t attempt) const
Compute delay for the given attempt number.
Configuration structs with defaults.
Activate model on GPU (WARM → ACTIVE).
Reconnection policy configuration for external MCP servers.
Definition config.h:433