AssistantError

org.llm4s.error.AssistantError
See theAssistantError companion object
@Stable
sealed abstract class AssistantError extends Product, Serializable

Assistant-specific error types with rich context and formatting.

== Growth safety == Each case is a final case class with a private constructor and copy: build one with its companion apply (or a smart constructor below) and change a field with its with* setter (an Option field's setter takes the value or an Option), so a field can be added later without breaking binary compatibility.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class DisplayError
class EOFError
class FileError
class IOError
class SessionError
Show all

Members list

Value members

Abstract methods

def message: String

Human-readable error message

Human-readable error message

Attributes

Concrete methods

def context: Map[String, String]

Additional context information

Additional context information

Attributes

def formatted: String

Converts to a formatted error message with context

Converts to a formatted error message with context

Attributes

Inherited methods

def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product