Class: Insika::Evals::Simulator::SimulatedRun
- Inherits:
-
Struct
- Object
- Struct
- Insika::Evals::Simulator::SimulatedRun
- Defined in:
- lib/insika/evals/simulator.rb
Overview
A generated conversation. transcript is [{ role: "user"|"assistant",
text:, tools: [names] }] in order; stop is one of :goal_met | :gave_up |
:max_turns | :error; simulated is ALWAYS true — the flag that keeps a
report from mixing generated traffic with real conversations (rule D).
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#stop ⇒ Object
Returns the value of attribute stop.
-
#transcript ⇒ Object
Returns the value of attribute transcript.
-
#turns ⇒ Object
Returns the value of attribute turns.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
34 35 36 |
# File 'lib/insika/evals/simulator.rb', line 34 def error @error end |
#stop ⇒ Object
Returns the value of attribute stop
34 35 36 |
# File 'lib/insika/evals/simulator.rb', line 34 def stop @stop end |
#transcript ⇒ Object
Returns the value of attribute transcript
34 35 36 |
# File 'lib/insika/evals/simulator.rb', line 34 def transcript @transcript end |
#turns ⇒ Object
Returns the value of attribute turns
34 35 36 |
# File 'lib/insika/evals/simulator.rb', line 34 def turns @turns end |
Instance Method Details
#simulated ⇒ Object
35 |
# File 'lib/insika/evals/simulator.rb', line 35 def simulated = true |
#simulated? ⇒ Boolean
36 |
# File 'lib/insika/evals/simulator.rb', line 36 def simulated? = true |
#to_h ⇒ Object
38 39 40 41 |
# File 'lib/insika/evals/simulator.rb', line 38 def to_h { "simulated" => true, "stop" => stop.to_s, "turns" => turns, "error" => error, "transcript" => transcript }.compact end |