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

#api_error_statusObject

Returns the value of attribute api_error_status.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def api_error_status
  @api_error_status
end

#deferred_tool_useObject

DeferredToolUse, populated when a PreToolUse hook deferred



369
370
371
# File 'lib/claude_agent_sdk/types.rb', line 369

def deferred_tool_use
  @deferred_tool_use
end

#duration_api_msObject

Returns the value of attribute duration_api_ms.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def duration_api_ms
  @duration_api_ms
end

#duration_msObject

Returns the value of attribute duration_ms.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def duration_ms
  @duration_ms
end

#errorsObject

Returns the value of attribute errors.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def errors
  @errors
end

#fast_mode_stateObject

Returns the value of attribute fast_mode_state.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def fast_mode_state
  @fast_mode_state
end

#is_errorObject

Returns the value of attribute is_error.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def is_error
  @is_error
end

#model_usageObject

Returns the value of attribute model_usage.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def model_usage
  @model_usage
end

#num_turnsObject

Returns the value of attribute num_turns.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def num_turns
  @num_turns
end

#permission_denialsObject

Returns the value of attribute permission_denials.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def permission_denials
  @permission_denials
end

#resultObject

Returns the value of attribute result.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def result
  @result
end

#session_idObject

Returns the value of attribute session_id.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def session_id
  @session_id
end

#stop_reasonObject

Returns the value of attribute stop_reason.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def stop_reason
  @stop_reason
end

#structured_outputObject

Returns the value of attribute structured_output.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def structured_output
  @structured_output
end

#subtypeObject

Returns the value of attribute subtype.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def subtype
  @subtype
end

#total_cost_usdObject

Returns the value of attribute total_cost_usd.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def total_cost_usd
  @total_cost_usd
end

#usageObject

Returns the value of attribute usage.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def usage
  @usage
end

#uuidObject

Returns the value of attribute uuid.



359
360
361
# File 'lib/claude_agent_sdk/types.rb', line 359

def uuid
  @uuid
end