UnsupportedContentPartError

org.llm4s.error.UnsupportedContentPartError
See theUnsupportedContentPartError companion object
@Stable

A message carries a content part the provider cannot send: an image or a document its API does not take, from a source it cannot read, in a role it cannot carry it in, or a file uploaded to another provider. The request fails before anything is sent, rather than have the part dropped or sent as text. As a NonRecoverableError, the conversation must change before a retry.

Value parameters

part

the part's kind, e.g. image (url, image/png) (see ContentPart.kind)

provider

the client's provider id, e.g. ollama

role

the role of the message that carries it, e.g. user or tool

Attributes

Companion
object
Graph
Supertypes
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Inherited from:
LLMError
def correlationId: Option[String]

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
def formatted: String

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val context: Map[String, String]

Additional context information

Additional context information

Attributes