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 Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass Any
Members list
In this article