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

the id of the provider called (openai, stability, ...), when known

quality

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

size

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

success

Whether the operation succeeded

Attributes

Companion
object
Source
TraceEvent.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TraceEvent
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
TraceEvent.scala
def toJson: Value

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Attributes

Source
TraceEvent.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

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
Source
TraceEvent.scala