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.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def api_error_status @api_error_status end |
#deferred_tool_use ⇒ Object
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_ms ⇒ Object
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_ms ⇒ Object
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 |
#errors ⇒ Object
Returns the value of attribute errors.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def errors @errors end |
#fast_mode_state ⇒ Object
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_error ⇒ Object
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_usage ⇒ Object
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_turns ⇒ Object
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_denials ⇒ Object
Returns the value of attribute permission_denials.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def @permission_denials end |
#result ⇒ Object
Returns the value of attribute result.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def result @result end |
#session_id ⇒ Object
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_reason ⇒ Object
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_output ⇒ Object
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 |
#subtype ⇒ Object
Returns the value of attribute subtype.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def subtype @subtype end |
#total_cost_usd ⇒ Object
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 |
#usage ⇒ Object
Returns the value of attribute usage.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def usage @usage end |
#uuid ⇒ Object
Returns the value of attribute uuid.
359 360 361 |
# File 'lib/claude_agent_sdk/types.rb', line 359 def uuid @uuid end |