OpenInference JS
    Preparing search index...
    defaultProcessOutput: OutputToAttributesFn = ...

    Default output processing function that converts function results to OpenTelemetry attributes.

    This is a convenience function that combines toOutputType and getOutputAttributes to provide a complete output processing pipeline for tracing decorators.

    The function's return value to process

    OpenTelemetry attributes representing the output

    const attrs = defaultProcessOutput({ status: "success" });
    // Returns: { [OUTPUT_VALUE]: '{"status":"success"}', [OUTPUT_MIME_TYPE]: MimeType.JSON }