Interface LLMObservabilitySpan

interface LLMObservabilitySpan {
    input: {
        content: string;
        role?: string;
    }[];
    output: {
        content: string;
        role?: string;
    }[];
    getTag(key): undefined | string;
}

Properties

Methods

Properties

input: {
    content: string;
    role?: string;
}[]

The input content associated with the span.

Type declaration

  • content: string
  • Optional role?: string
output: {
    content: string;
    role?: string;
}[]

The output content associated with the span.

Type declaration

  • content: string
  • Optional role?: string

Methods

  • Get a tag from the span.

    Parameters

    • key: string

      The key of the tag to get.

    Returns undefined | string

    The value of the tag, or undefined if the tag does not exist.