Class: RubyLLM::AiSdk::Request::Approval
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::AiSdk::Request::Approval
- Defined in:
- lib/ruby_llm/ai_sdk/request.rb
Overview
One decision on a tool call that required approval.
Instance Attribute Summary collapse
-
#approved ⇒ Object
Returns the value of attribute approved.
-
#tool_call_id ⇒ Object
Returns the value of attribute tool_call_id.
Instance Method Summary collapse
-
#approved? ⇒ Boolean
Returns whether the person approved the tool call.
Instance Attribute Details
#approved ⇒ Object
Returns the value of attribute approved
18 19 20 |
# File 'lib/ruby_llm/ai_sdk/request.rb', line 18 def approved @approved end |
#tool_call_id ⇒ Object
Returns the value of attribute tool_call_id
18 19 20 |
# File 'lib/ruby_llm/ai_sdk/request.rb', line 18 def tool_call_id @tool_call_id end |
Instance Method Details
#approved? ⇒ Boolean
Returns whether the person approved the tool call.
20 21 22 |
# File 'lib/ruby_llm/ai_sdk/request.rb', line 20 def approved? approved == true end |