Class: RubyLLM::MCP::Native::Transports::ReconnectionOptions
- Inherits:
-
Object
- Object
- RubyLLM::MCP::Native::Transports::ReconnectionOptions
- Defined in:
- lib/ruby_llm/mcp/native/transports/streamable_http.rb
Overview
Configuration options for reconnection behavior
Instance Attribute Summary collapse
-
#initial_reconnection_delay ⇒ Object
readonly
Returns the value of attribute initial_reconnection_delay.
-
#max_reconnection_delay ⇒ Object
readonly
Returns the value of attribute max_reconnection_delay.
-
#max_retries ⇒ Object
readonly
Returns the value of attribute max_retries.
-
#reconnection_delay_grow_factor ⇒ Object
readonly
Returns the value of attribute reconnection_delay_grow_factor.
Instance Method Summary collapse
-
#initialize(max_reconnection_delay: 30_000, initial_reconnection_delay: 1_000, reconnection_delay_grow_factor: 1.5, max_retries: 2) ⇒ ReconnectionOptions
constructor
A new instance of ReconnectionOptions.
Constructor Details
#initialize(max_reconnection_delay: 30_000, initial_reconnection_delay: 1_000, reconnection_delay_grow_factor: 1.5, max_retries: 2) ⇒ ReconnectionOptions
Returns a new instance of ReconnectionOptions.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ruby_llm/mcp/native/transports/streamable_http.rb', line 12 def initialize( max_reconnection_delay: 30_000, initial_reconnection_delay: 1_000, reconnection_delay_grow_factor: 1.5, max_retries: 2 ) @max_reconnection_delay = max_reconnection_delay @initial_reconnection_delay = initial_reconnection_delay @reconnection_delay_grow_factor = reconnection_delay_grow_factor @max_retries = max_retries end |
Instance Attribute Details
#initial_reconnection_delay ⇒ Object (readonly)
Returns the value of attribute initial_reconnection_delay.
9 10 11 |
# File 'lib/ruby_llm/mcp/native/transports/streamable_http.rb', line 9 def initial_reconnection_delay @initial_reconnection_delay end |
#max_reconnection_delay ⇒ Object (readonly)
Returns the value of attribute max_reconnection_delay.
9 10 11 |
# File 'lib/ruby_llm/mcp/native/transports/streamable_http.rb', line 9 def max_reconnection_delay @max_reconnection_delay end |
#max_retries ⇒ Object (readonly)
Returns the value of attribute max_retries.
9 10 11 |
# File 'lib/ruby_llm/mcp/native/transports/streamable_http.rb', line 9 def max_retries @max_retries end |
#reconnection_delay_grow_factor ⇒ Object (readonly)
Returns the value of attribute reconnection_delay_grow_factor.
9 10 11 |
# File 'lib/ruby_llm/mcp/native/transports/streamable_http.rb', line 9 def reconnection_delay_grow_factor @reconnection_delay_grow_factor end |