Class: Copilot::PermissionRequest
- Inherits:
-
Struct
- Object
- Struct
- Copilot::PermissionRequest
- Defined in:
- lib/copilot/types.rb
Overview
Permission request from the server.
Instance Attribute Summary collapse
-
#extra ⇒ Object
Returns the value of attribute extra.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#tool_call_id ⇒ Object
Returns the value of attribute tool_call_id.
Class Method Summary collapse
Instance Attribute Details
#extra ⇒ Object
Returns the value of attribute extra
139 140 141 |
# File 'lib/copilot/types.rb', line 139 def extra @extra end |
#kind ⇒ Object
Returns the value of attribute kind
139 140 141 |
# File 'lib/copilot/types.rb', line 139 def kind @kind end |
#tool_call_id ⇒ Object
Returns the value of attribute tool_call_id
139 140 141 |
# File 'lib/copilot/types.rb', line 139 def tool_call_id @tool_call_id end |
Class Method Details
.from_hash(h) ⇒ Object
140 141 142 143 144 145 146 |
# File 'lib/copilot/types.rb', line 140 def self.from_hash(h) new( kind: h["kind"], tool_call_id: h["toolCallId"], extra: h.reject { |k, _| %w[kind toolCallId].include?(k) } ) end |