Class: GuardrailsRuby::Configuration
- Inherits:
-
Object
- Object
- GuardrailsRuby::Configuration
- Defined in:
- lib/guardrails_ruby/configuration.rb
Instance Attribute Summary collapse
-
#default_input_checks ⇒ Object
Returns the value of attribute default_input_checks.
-
#default_output_checks ⇒ Object
Returns the value of attribute default_output_checks.
-
#judge_llm ⇒ Object
Returns the value of attribute judge_llm.
-
#on_violation ⇒ Object
Returns the value of attribute on_violation.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/guardrails_ruby/configuration.rb', line 8 def initialize @default_input_checks = [] @default_output_checks = [] @on_violation = nil @judge_llm = nil end |
Instance Attribute Details
#default_input_checks ⇒ Object
Returns the value of attribute default_input_checks.
5 6 7 |
# File 'lib/guardrails_ruby/configuration.rb', line 5 def default_input_checks @default_input_checks end |
#default_output_checks ⇒ Object
Returns the value of attribute default_output_checks.
5 6 7 |
# File 'lib/guardrails_ruby/configuration.rb', line 5 def default_output_checks @default_output_checks end |
#judge_llm ⇒ Object
Returns the value of attribute judge_llm.
5 6 7 |
# File 'lib/guardrails_ruby/configuration.rb', line 5 def judge_llm @judge_llm end |
#on_violation ⇒ Object
Returns the value of attribute on_violation.
5 6 7 |
# File 'lib/guardrails_ruby/configuration.rb', line 5 def on_violation @on_violation end |