Class GenerationSpanData

java.lang.Object
ai.acolite.agentsdk.core.tracing.GenerationSpanData
All Implemented Interfaces:
SpanData

public final class GenerationSpanData extends Object implements SpanData
Span data for LLM generation calls.

Captures model inputs, outputs, configuration, and token usage for each call to the language model.

Ported from TypeScript OpenAI Agents SDK Source: tracing/spans.ts

  • Constructor Details

    • GenerationSpanData

      public GenerationSpanData()
  • Method Details

    • getType

      public String getType()
      Description copied from interface: SpanData
      Get the span type identifier. Used for serialization and type discrimination.
      Specified by:
      getType in interface SpanData
      Returns:
      Span type (e.g., "agent", "generation", "function")