Exception: OmniAI::Chat::ToolCallError

Inherits:
Error
  • Object
show all
Defined in:
lib/omniai/chat.rb

Overview

An error raised for tool-call issues.

Direct Known Subclasses

ToolCallMissingError

Instance Method Summary collapse

Constructor Details

#initialize(tool_call:, message:) ⇒ ToolCallError

Returns a new instance of ToolCallError.

Parameters:



34
35
36
37
# File 'lib/omniai/chat.rb', line 34

def initialize(tool_call:, message:)
  super(message)
  @tool_call = tool_call
end