interface DatadogLLMObsSpan {
    duration: number;
    error: number;
    meta: {
        input: DatadogLLMObsIO;
        kind: DatadogLLMObsSpanKind;
        output: undefined | {
            value: string;
        } | {
            documents: {
                score: string | number;
                id?: string;
                name?: string;
                text?: string;
            }[];
        } | {
            messages: {
                content: string;
                role?: string;
            }[];
        };
        model_name?: string;
        model_provider?: string;
        temperature?: string;
    };
    metrics: {
        [key: string]: number;
    };
    name: string;
    parent_id: string;
    span_id: string;
    start_ns: number;
    status: string;
    trace_id: string;
    session_id?: string;
    tags?: string[];
}

Properties

duration: number
error: number
meta: {
    input: DatadogLLMObsIO;
    kind: DatadogLLMObsSpanKind;
    output: undefined | {
        value: string;
    } | {
        documents: {
            score: string | number;
            id?: string;
            name?: string;
            text?: string;
        }[];
    } | {
        messages: {
            content: string;
            role?: string;
        }[];
    };
    model_name?: string;
    model_provider?: string;
    temperature?: string;
}

Type declaration

  • input: DatadogLLMObsIO
  • kind: DatadogLLMObsSpanKind
  • output: undefined | {
        value: string;
    } | {
        documents: {
            score: string | number;
            id?: string;
            name?: string;
            text?: string;
        }[];
    } | {
        messages: {
            content: string;
            role?: string;
        }[];
    }
  • Optional model_name?: string
  • Optional model_provider?: string
  • Optional temperature?: string
metrics: {
    [key: string]: number;
}

Type declaration

  • [key: string]: number
name: string
parent_id: string
span_id: string
start_ns: number
status: string
trace_id: string
session_id?: string
tags?: string[]

Generated using TypeDoc