ImageGenerationCompleted

org.llm4s.trace.TraceEvent.ImageGenerationCompleted
case class ImageGenerationCompleted(model: String, provider: String, operation: String, imageCount: Int, size: String, quality: String, durationMs: Long, costUsd: Option[Double], success: Boolean, errorMessage: Option[String], timestamp: Instant) extends TraceEvent

Tracks completion of an image generation operation.

Value parameters

costUsd

Estimated cost in USD, if available

durationMs

Wall-clock duration in milliseconds

errorMessage

Error message if the operation failed

imageCount

Number of images generated

model

Image generation model name (e.g., "gpt-image-1", "dall-e-3")

operation

Type of operation: "generate", "edit"

provider

Provider name (e.g., "openai", "stability-ai")

quality

Quality level (e.g., "standard", "hd")

size

Image size descriptor (e.g., "1024x1024")

success

Whether the operation succeeded

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TraceEvent
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def eventType: String
def toJson: Value

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product