Exception: RubyConversations::ToolCallValidationError
- Defined in:
- lib/ruby_conversations/errors.rb
Overview
Error raised when tool calls are expected but not found in LLM response
Instance Attribute Summary collapse
-
#last_message ⇒ Object
readonly
Returns the value of attribute last_message.
-
#tool_names ⇒ Object
readonly
Returns the value of attribute tool_names.
Instance Method Summary collapse
-
#initialize(message, last_message: nil, tool_names: nil) ⇒ ToolCallValidationError
constructor
A new instance of ToolCallValidationError.
Constructor Details
#initialize(message, last_message: nil, tool_names: nil) ⇒ ToolCallValidationError
Returns a new instance of ToolCallValidationError.
27 28 29 30 31 |
# File 'lib/ruby_conversations/errors.rb', line 27 def initialize(, last_message: nil, tool_names: nil) super() @last_message = @tool_names = tool_names end |
Instance Attribute Details
#last_message ⇒ Object (readonly)
Returns the value of attribute last_message.
25 26 27 |
# File 'lib/ruby_conversations/errors.rb', line 25 def @last_message end |
#tool_names ⇒ Object (readonly)
Returns the value of attribute tool_names.
25 26 27 |
# File 'lib/ruby_conversations/errors.rb', line 25 def tool_names @tool_names end |