Class: ClaudeAgentSDK::ResultMessage

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Result message with cost and usage information

Instance Attribute Summary collapse

Method Summary

Methods inherited from Type

#[], #[]=, from_hash, #initialize, #to_h, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#duration_api_msObject

Returns the value of attribute duration_api_ms.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def duration_api_ms
  @duration_api_ms
end

#duration_msObject

Returns the value of attribute duration_ms.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def duration_ms
  @duration_ms
end

#errorsObject

Returns the value of attribute errors.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def errors
  @errors
end

#fast_mode_stateObject

Returns the value of attribute fast_mode_state.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def fast_mode_state
  @fast_mode_state
end

#is_errorObject

Returns the value of attribute is_error.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def is_error
  @is_error
end

#model_usageObject

Returns the value of attribute model_usage.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def model_usage
  @model_usage
end

#num_turnsObject

Returns the value of attribute num_turns.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def num_turns
  @num_turns
end

#permission_denialsObject

Returns the value of attribute permission_denials.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def permission_denials
  @permission_denials
end

#resultObject

Returns the value of attribute result.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def result
  @result
end

#session_idObject

Returns the value of attribute session_id.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def session_id
  @session_id
end

#stop_reasonObject

Returns the value of attribute stop_reason.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def stop_reason
  @stop_reason
end

#structured_outputObject

Returns the value of attribute structured_output.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def structured_output
  @structured_output
end

#subtypeObject

Returns the value of attribute subtype.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def subtype
  @subtype
end

#total_cost_usdObject

Returns the value of attribute total_cost_usd.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def total_cost_usd
  @total_cost_usd
end

#usageObject

Returns the value of attribute usage.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def usage
  @usage
end

#uuidObject

Returns the value of attribute uuid.



339
340
341
# File 'lib/claude_agent_sdk/types.rb', line 339

def uuid
  @uuid
end