ImageGenerationCompleted

org.llm4s.trace.TraceEvent.ImageGenerationCompleted
See theImageGenerationCompleted companion object
final case class ImageGenerationCompleted extends TraceEvent

Tracks completion of an image generation operation.

Value parameters

costUsd

Estimated cost in USD, if available

duration

Wall-clock duration

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

Companion
object
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
def withCostUsd(costUsd: Double): ImageGenerationCompleted
def withCostUsd(costUsd: Option[Double]): ImageGenerationCompleted
def withDuration(duration: FiniteDuration): ImageGenerationCompleted
def withErrorMessage(errorMessage: String): ImageGenerationCompleted
def withErrorMessage(errorMessage: Option[String]): ImageGenerationCompleted
def withModel(model: String): ImageGenerationCompleted
def withOperation(operation: String): ImageGenerationCompleted
def withProvider(provider: String): ImageGenerationCompleted
def withQuality(quality: String): ImageGenerationCompleted
def withSize(size: String): ImageGenerationCompleted
def withSuccess(success: Boolean): ImageGenerationCompleted
def withTimestamp(timestamp: Instant): ImageGenerationCompleted

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def span: Option[TraceSpan]

Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.

Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.

Attributes

Inherited from:
TraceEvent