Class: ClaudeAgentSDK::ResultMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Result message with cost and usage information
Instance Attribute Summary collapse
-
#api_error_status ⇒ Object
Returns the value of attribute api_error_status.
-
#deferred_tool_use ⇒ Object
DeferredToolUse, populated when a PreToolUse hook deferred.
-
#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
#api_error_status ⇒ Object
Returns the value of attribute api_error_status.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def api_error_status @api_error_status end |
#deferred_tool_use ⇒ Object
DeferredToolUse, populated when a PreToolUse hook deferred
376 377 378 |
# File 'lib/claude_agent_sdk/types.rb', line 376 def deferred_tool_use @deferred_tool_use end |
#duration_api_ms ⇒ Object
Returns the value of attribute duration_api_ms.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def duration_api_ms @duration_api_ms end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def duration_ms @duration_ms end |
#errors ⇒ Object
Returns the value of attribute errors.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def errors @errors end |
#fast_mode_state ⇒ Object
Returns the value of attribute fast_mode_state.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def fast_mode_state @fast_mode_state end |
#is_error ⇒ Object
Returns the value of attribute is_error.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def is_error @is_error end |
#model_usage ⇒ Object
Returns the value of attribute model_usage.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def model_usage @model_usage end |
#num_turns ⇒ Object
Returns the value of attribute num_turns.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def num_turns @num_turns end |
#permission_denials ⇒ Object
Returns the value of attribute permission_denials.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def @permission_denials end |
#result ⇒ Object
Returns the value of attribute result.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def result @result end |
#session_id ⇒ Object
Returns the value of attribute session_id.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def session_id @session_id end |
#stop_reason ⇒ Object
Returns the value of attribute stop_reason.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def stop_reason @stop_reason end |
#structured_output ⇒ Object
Returns the value of attribute structured_output.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def structured_output @structured_output end |
#subtype ⇒ Object
Returns the value of attribute subtype.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def subtype @subtype end |
#total_cost_usd ⇒ Object
Returns the value of attribute total_cost_usd.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def total_cost_usd @total_cost_usd end |
#usage ⇒ Object
Returns the value of attribute usage.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def usage @usage end |
#uuid ⇒ Object
Returns the value of attribute uuid.
366 367 368 |
# File 'lib/claude_agent_sdk/types.rb', line 366 def uuid @uuid end |