Attributes of an LLM Observability span.

Hierarchy

  • LLMObsSpanAttributes

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
duration: number

Duration of the span in nanoseconds.

evaluation?: {
    [key: string]: LLMObsSpanEvaluationMetric;
}

Evaluation metrics keyed by evaluator name.

Type declaration

input?: LLMObsSpanIO

Input or output content of an LLM Observability span.

intent?: string

Detected intent of the span.

metadata?: {
    [key: string]: any;
}

Arbitrary metadata associated with the span.

Type declaration

  • [key: string]: any
metrics?: {
    [key: string]: number;
}

Numeric metrics associated with the span (e.g., token counts).

Type declaration

  • [key: string]: number
mlApp: string

Name of the ML application this span belongs to.

modelName?: string

Name of the model used in this span.

modelProvider?: string

Provider of the model used in this span.

name: string

Name of the span.

output?: LLMObsSpanIO

Input or output content of an LLM Observability span.

parentId?: string

Identifier of the parent span, if any.

spanId: string

Unique identifier of the span.

spanKind: string

Kind of span (e.g., llm, agent, tool, task, workflow).

startNs: number

Start time of the span in nanoseconds since Unix epoch.

status: string

Status of the span (e.g., ok, error).

tags?: string[]

Tags associated with the span.

toolDefinitions?: LLMObsSpanToolDefinition[]

Tool definitions available to the span.

traceId: string

Trace identifier this span belongs to.

Generated using TypeDoc