Class: Phronomy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/phronomy/configuration.rb

Overview

Holds global configuration for the entire framework.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/phronomy/configuration.rb', line 41

def initialize
  @recursion_limit = 25
  @tracer = Phronomy::Tracing::NullTracer.new
  @trace_pii = false
  @parallel_tool_execution = false
  @event_loop_stop_grace_seconds = 5
  @llm_adapter = Phronomy::LLMAdapter::RubyLLM.new
  @event_loop_starvation_threshold_seconds = nil
  @event_loop_dispatch_threshold_seconds = nil
  @stream_callback_error_policy = :report
  @offload_pool_size = 10
  @offload_queue_size = 100
  @authorization_pool_size = 4
  @authorization_queue_size = 100
  @authorization_timeout = 5
end

Instance Attribute Details

#authorization_pool_sizeObject

Returns the value of attribute authorization_pool_size.



27
28
29
# File 'lib/phronomy/configuration.rb', line 27

def authorization_pool_size
  @authorization_pool_size
end

#authorization_queue_sizeObject

Returns the value of attribute authorization_queue_size.



28
29
30
# File 'lib/phronomy/configuration.rb', line 28

def authorization_queue_size
  @authorization_queue_size
end

#authorization_timeoutObject

Returns the value of attribute authorization_timeout.



29
30
31
# File 'lib/phronomy/configuration.rb', line 29

def authorization_timeout
  @authorization_timeout
end

#before_llm_inputObject

Returns the value of attribute before_llm_input.



12
13
14
# File 'lib/phronomy/configuration.rb', line 12

def before_llm_input
  @before_llm_input
end

#default_embedding_modelObject

Returns the value of attribute default_embedding_model.



10
11
12
# File 'lib/phronomy/configuration.rb', line 10

def default_embedding_model
  @default_embedding_model
end

#default_modelObject

Returns the value of attribute default_model.



9
10
11
# File 'lib/phronomy/configuration.rb', line 9

def default_model
  @default_model
end

#default_output_reserveObject

Returns the value of attribute default_output_reserve.



13
14
15
# File 'lib/phronomy/configuration.rb', line 13

def default_output_reserve
  @default_output_reserve
end

#event_loop_dispatch_threshold_secondsObject

Returns the value of attribute event_loop_dispatch_threshold_seconds.



23
24
25
# File 'lib/phronomy/configuration.rb', line 23

def event_loop_dispatch_threshold_seconds
  @event_loop_dispatch_threshold_seconds
end

#event_loop_starvation_threshold_secondsObject

Returns the value of attribute event_loop_starvation_threshold_seconds.



22
23
24
# File 'lib/phronomy/configuration.rb', line 22

def event_loop_starvation_threshold_seconds
  @event_loop_starvation_threshold_seconds
end

#event_loop_stop_grace_secondsObject

Returns the value of attribute event_loop_stop_grace_seconds.



18
19
20
# File 'lib/phronomy/configuration.rb', line 18

def event_loop_stop_grace_seconds
  @event_loop_stop_grace_seconds
end

#llm_adapterObject

Returns the value of attribute llm_adapter.



21
22
23
# File 'lib/phronomy/configuration.rb', line 21

def llm_adapter
  @llm_adapter
end

#loggerObject

Returns the value of attribute logger.



17
18
19
# File 'lib/phronomy/configuration.rb', line 17

def logger
  @logger
end

#offload_pool_sizeObject

Returns the value of attribute offload_pool_size.



25
26
27
# File 'lib/phronomy/configuration.rb', line 25

def offload_pool_size
  @offload_pool_size
end

#offload_queue_sizeObject

Returns the value of attribute offload_queue_size.



26
27
28
# File 'lib/phronomy/configuration.rb', line 26

def offload_queue_size
  @offload_queue_size
end

#parallel_tool_executionObject

Returns the value of attribute parallel_tool_execution.



15
16
17
# File 'lib/phronomy/configuration.rb', line 15

def parallel_tool_execution
  @parallel_tool_execution
end

#recursion_limitObject

Returns the value of attribute recursion_limit.



14
15
16
# File 'lib/phronomy/configuration.rb', line 14

def recursion_limit
  @recursion_limit
end

#state_storeObject

Returns the value of attribute state_store.



19
20
21
# File 'lib/phronomy/configuration.rb', line 19

def state_store
  @state_store
end

#stream_callback_error_policyObject

Returns the value of attribute stream_callback_error_policy.



24
25
26
# File 'lib/phronomy/configuration.rb', line 24

def stream_callback_error_policy
  @stream_callback_error_policy
end

#tool_result_max_sizeObject

Returns the value of attribute tool_result_max_size.



20
21
22
# File 'lib/phronomy/configuration.rb', line 20

def tool_result_max_size
  @tool_result_max_size
end

#trace_piiObject

Returns the value of attribute trace_pii.



16
17
18
# File 'lib/phronomy/configuration.rb', line 16

def trace_pii
  @trace_pii
end

#tracerObject

Returns the value of attribute tracer.



11
12
13
# File 'lib/phronomy/configuration.rb', line 11

def tracer
  @tracer
end