LLMError

org.llm4s.error.LLMError
See theLLMError companion trait
object LLMError

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
LLMError.type

Members list

Type members

Classlikes

implicit class LLMErrorDisplayOps(error: LLMError)

Extension methods for ergonomic usage

Extension methods for ergonomic usage

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apiCallFailed(provider: String, message: String, statusCode: Option[Int], responseBody: Option[String]): APIError
def invalidImageInput(field: String, value: String, reason: String): InvalidInputError
def isRecoverable(error: LLMError): Boolean

Type-safe recoverability checks

Type-safe recoverability checks

Value parameters

error

LLMError

Attributes

def nonRecoverableErrors(errors: List[LLMError]): List[LLMError]
def processingFailed(operation: String, message: String, cause: Option[Throwable]): ProcessingError
def recoverableErrors(errors: List[LLMError]): List[LLMError]
def show(error: LLMError): String

Static show method - always works

Static show method - always works

Attributes

Deprecated methods

def fromThrowable(throwable: Throwable): LLMError

Attributes

Deprecated
[Since version 0.1.10] Use ThrowableOps.RichThrowable#toLLMError with an ErrorMapper

Implicits

Implicits

final implicit def LLMErrorDisplayOps(error: LLMError): LLMErrorDisplayOps

Extension methods for ergonomic usage

Extension methods for ergonomic usage

Attributes

implicit val llmErrorShow: Show[LLMError]