Class: ClaudeAgentSDK::ResultMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Result message with cost and usage information
Instance Attribute Summary collapse
-
#duration_api_ms ⇒ Object
Returns the value of attribute duration_api_ms.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#fast_mode_state ⇒ Object
Returns the value of attribute fast_mode_state.
-
#is_error ⇒ Object
Returns the value of attribute is_error.
-
#model_usage ⇒ Object
Returns the value of attribute model_usage.
-
#num_turns ⇒ Object
Returns the value of attribute num_turns.
-
#permission_denials ⇒ Object
Returns the value of attribute permission_denials.
-
#result ⇒ Object
Returns the value of attribute result.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#stop_reason ⇒ Object
Returns the value of attribute stop_reason.
-
#structured_output ⇒ Object
Returns the value of attribute structured_output.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#total_cost_usd ⇒ Object
Returns the value of attribute total_cost_usd.
-
#usage ⇒ Object
Returns the value of attribute usage.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
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_ms ⇒ Object
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_ms ⇒ Object
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 |
#errors ⇒ Object
Returns the value of attribute errors.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def errors @errors end |
#fast_mode_state ⇒ Object
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_error ⇒ Object
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_usage ⇒ Object
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_turns ⇒ Object
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_denials ⇒ Object
Returns the value of attribute permission_denials.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def @permission_denials end |
#result ⇒ Object
Returns the value of attribute result.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def result @result end |
#session_id ⇒ Object
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_reason ⇒ Object
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_output ⇒ Object
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 |
#subtype ⇒ Object
Returns the value of attribute subtype.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def subtype @subtype end |
#total_cost_usd ⇒ Object
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 |
#usage ⇒ Object
Returns the value of attribute usage.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def usage @usage end |
#uuid ⇒ Object
Returns the value of attribute uuid.
339 340 341 |
# File 'lib/claude_agent_sdk/types.rb', line 339 def uuid @uuid end |