Class: RubyLLM::AiSdk::Request::Approval

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_llm/ai_sdk/request.rb

Overview

One decision on a tool call that required approval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#approved ⇒ Object

Returns the value of attribute approved

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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.

Returns:

  • (Boolean)


20
21
22
# File 'lib/ruby_llm/ai_sdk/request.rb', line 20

def approved?
  approved == true
end