Class: ClaudeAgentSDK::ToolPermissionContext
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Tool permission context
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#signal ⇒ Object
Returns the value of attribute signal.
-
#suggestions ⇒ Object
Returns the value of attribute suggestions.
-
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ToolPermissionContext
constructor
A new instance of ToolPermissionContext.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ ToolPermissionContext
Returns a new instance of ToolPermissionContext.
525 526 527 528 |
# File 'lib/claude_agent_sdk/types.rb', line 525 def initialize(attributes = {}) super @suggestions ||= [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
523 524 525 |
# File 'lib/claude_agent_sdk/types.rb', line 523 def agent_id @agent_id end |
#signal ⇒ Object
Returns the value of attribute signal.
523 524 525 |
# File 'lib/claude_agent_sdk/types.rb', line 523 def signal @signal end |
#suggestions ⇒ Object
Returns the value of attribute suggestions.
523 524 525 |
# File 'lib/claude_agent_sdk/types.rb', line 523 def suggestions @suggestions end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
523 524 525 |
# File 'lib/claude_agent_sdk/types.rb', line 523 def tool_use_id @tool_use_id end |