Text

org.llm4s.llmconnect.model.ContentPart.Text
See theText companion object
final case class Text extends ContentPart

Text. A message whose every part is blank text is refused by Message.validate. A null text is read as empty when the part is built, so no code that reads a part - validation, a codec, a provider's encoder - has to guard against it.

Attributes

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

Members list

Value members

Concrete methods

def kind: String

The part's kind, for errors and logs: text, or the category, source and media type of an image or document, e.g. image (url, image/png) or document (provider file openai, application/pdf).

The part's kind, for errors and logs: text, or the category, source and media type of an image or document, e.g. image (url, image/png) or document (provider file openai, application/pdf).

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product