Exception: Durable::Llm::InvalidResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/durable/llm/errors.rb

Overview

Error raised when the API response is invalid or malformed.

This occurs when the provider returns a response that cannot be parsed or doesn’t match the expected format.

Examples:

Handling invalid response errors

begin
  client.complete("Hello")
rescue Durable::Llm::InvalidResponseError => e
  puts "Invalid response received: #{e.message}"
end