Class: Ocak::ClaudeRunner::AgentResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/ocak/claude_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cost_usdObject

Returns the value of attribute cost_usd

Returns:

  • (Object)

    the current value of cost_usd



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def cost_usd
  @cost_usd
end

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def duration_ms
  @duration_ms
end

#files_editedObject

Returns the value of attribute files_edited

Returns:

  • (Object)

    the current value of files_edited



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def files_edited
  @files_edited
end

#num_turnsObject

Returns the value of attribute num_turns

Returns:

  • (Object)

    the current value of num_turns



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def num_turns
  @num_turns
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def output
  @output
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



10
11
12
# File 'lib/ocak/claude_runner.rb', line 10

def success
  @success
end

Instance Method Details

#blocking_findings?Boolean

Returns:

  • (Boolean)


13
# File 'lib/ocak/claude_runner.rb', line 13

def blocking_findings? = output.to_s.include?("\u{1F534}")

#success?Boolean

Returns:

  • (Boolean)


12
# File 'lib/ocak/claude_runner.rb', line 12

def success? = success

#warnings?Boolean

Returns:

  • (Boolean)


14
# File 'lib/ocak/claude_runner.rb', line 14

def warnings?          = output.to_s.include?("\u{1F7E1}")