Class: ClaudeAgentSDK::DeferredToolUse

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

Overview

Deferred tool use, emitted on ‘ResultMessage` when a PreToolUse hook returned `permissionDecision: “defer”`. The session can be resumed later to execute the deferred call. Mirrors Python’s ‘DeferredToolUse`.

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

#idObject

Returns the value of attribute id.



206
207
208
# File 'lib/claude_agent_sdk/types.rb', line 206

def id
  @id
end

#inputObject

Returns the value of attribute input.



206
207
208
# File 'lib/claude_agent_sdk/types.rb', line 206

def input
  @input
end

#nameObject

Returns the value of attribute name.



206
207
208
# File 'lib/claude_agent_sdk/types.rb', line 206

def name
  @name
end