Class: Optimize::Demo::Claude::Outcome

Inherits:
Struct
  • Object
show all
Defined in:
lib/optimize/demo/claude.rb

Overview

Orchestrator for the “gag pass” demo: wires Serializer, Validator, Prompt, Invoker, and Transcript into a retry loop.

‘invoker` is dependency-injected. Production uses Invoker (shell out); tests pass a stub whose `.call(prompt:)` returns a pre-parsed Array.

Instance Attribute Summary collapse

Instance Attribute Details

#outcomeObject

Returns the value of attribute outcome

Returns:

  • (Object)

    the current value of outcome



18
19
20
# File 'lib/optimize/demo/claude.rb', line 18

def outcome
  @outcome
end

#transcriptObject

Returns the value of attribute transcript

Returns:

  • (Object)

    the current value of transcript



18
19
20
# File 'lib/optimize/demo/claude.rb', line 18

def transcript
  @transcript
end