Arize Phoenix TS
    Preparing search index...

    Represents the output data structure for OpenInference spans.

    This type defines how function return values or output data should be structured when creating span attributes. It provides both the serialized content and metadata about the content format for proper interpretation and display.

    const textOutput: SpanOutput = {
    value: "Operation completed successfully",
    mimeType: MimeType.TEXT
    };

    const jsonOutput: SpanOutput = {
    value: '{"status": "success", "result": {"id": 123}}',
    mimeType: MimeType.JSON
    };
    type SpanOutput = {
        mimeType: MimeType;
        value: string;
    }
    Index

    Properties

    Properties

    mimeType: MimeType

    The MIME type indicating the format of the output value.

    Specifies how the value should be interpreted (e.g., text/plain, application/json). This helps tools and UIs properly display and process the output data.

    value: string

    The textual representation of the output data.

    This should be a string representation of the output, either as plain text or as a serialized format (like JSON) depending on the mimeType.