ContentSize

org.llm4s.types.`package`.ContentSize
See theContentSize companion object
final case class ContentSize(bytes: Long) extends AnyVal

Type-safe wrapper for content size in bytes with validation

Attributes

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

Members list

Value members

Concrete methods

def exceedsThreshold(threshold: ExternalizationThreshold): Boolean
def toKB: Double
def toMB: Double
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product