Class: LlmCassette::Replayer
- Inherits:
-
Object
- Object
- LlmCassette::Replayer
- Defined in:
- lib/llm_cassette/replayer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(env, interaction) ⇒ Replayer
constructor
A new instance of Replayer.
Constructor Details
#initialize(env, interaction) ⇒ Replayer
Returns a new instance of Replayer.
7 8 9 10 |
# File 'lib/llm_cassette/replayer.rb', line 7 def initialize(env, interaction) @env = env @interaction = interaction end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/llm_cassette/replayer.rb', line 12 def call if @interaction.streaming? replay_streaming else replay_non_streaming end end |