Arize Phoenix TS
    Preparing search index...

    Represents the input data structure for OpenInference spans.

    This type defines how function arguments or input 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 textInput: SpanInput = {
    value: "Hello, world!",
    mimeType: MimeType.TEXT
    };

    const jsonInput: SpanInput = {
    value: '{"query": "search term", "limit": 10}',
    mimeType: MimeType.JSON
    };
    type SpanInput = {
        mimeType: MimeType;
        value: string;
    }
    Index

    Properties

    Properties

    mimeType: MimeType

    The MIME type indicating the format of the input value.

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

    value: string

    The textual representation of the input data.

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