Class FunctionSpanData

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

public final class FunctionSpanData extends Object implements SpanData
Span data for function/tool calls.

Captures function name, input parameters, output result, and optional MCP (Model Context Protocol) server information.

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

  • Constructor Details

    • FunctionSpanData

      public FunctionSpanData()
  • 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")