Class: Legion::Extensions::Agentic::Inference::Counterfactual::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Counterfactual
Defined in:
lib/legion/extensions/agentic/inference/counterfactual/client.rb

Constant Summary

Constants included from Helpers::Constants

Helpers::Constants::COUNTERFACTUAL_TYPES, Helpers::Constants::DEFAULT_REGRET, Helpers::Constants::DOWNWARD_WEIGHT, Helpers::Constants::EMOTIONAL_RESPONSES, Helpers::Constants::MAX_ALTERNATIVES, Helpers::Constants::MAX_HISTORY, Helpers::Constants::MAX_SCENARIOS, Helpers::Constants::MUTATION_TYPES, Helpers::Constants::PLAUSIBILITY_THRESHOLD, Helpers::Constants::REGRET_CEILING, Helpers::Constants::REGRET_DECAY, Helpers::Constants::REGRET_FLOOR, Helpers::Constants::RELEVANCE_THRESHOLD, Helpers::Constants::UPWARD_WEIGHT

Instance Method Summary collapse

Methods included from Runners::Counterfactual

#compute_regret, #counterfactual_stats, #domain_regret, #generate_alternatives, #imagine_counterfactual, #lessons_learned, #net_regret_level, #resolve_counterfactual, #update_counterfactual

Constructor Details

#initialize(**opts) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/legion/extensions/agentic/inference/counterfactual/client.rb', line 11

def initialize(**opts)
  @engine = opts[:engine] if opts[:engine]
end