Class: Insika::Evals::Simulator::SimulatedRun

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



34
35
36
# File 'lib/insika/evals/simulator.rb', line 34

def error
  @error
end

#stopObject

Returns the value of attribute stop

Returns:

  • (Object)

    the current value of stop



34
35
36
# File 'lib/insika/evals/simulator.rb', line 34

def stop
  @stop
end

#transcriptObject

Returns the value of attribute transcript

Returns:

  • (Object)

    the current value of transcript



34
35
36
# File 'lib/insika/evals/simulator.rb', line 34

def transcript
  @transcript
end

#turnsObject

Returns the value of attribute turns

Returns:

  • (Object)

    the current value of turns



34
35
36
# File 'lib/insika/evals/simulator.rb', line 34

def turns
  @turns
end

Instance Method Details

#simulatedObject



35
# File 'lib/insika/evals/simulator.rb', line 35

def simulated = true

#simulated?Boolean

Returns:

  • (Boolean)


36
# File 'lib/insika/evals/simulator.rb', line 36

def simulated? = true

#to_hObject



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