def add_record(
        self,
        record: record_schema.Record,
        feedback_mode: Optional[feedback_schema.FeedbackMode] = None,
    ) -> record_schema.Record:
        """Add the given record to the database and evaluate any pre-specified
        feedbacks on it.

        The class `VirtualRecord` may be useful for creating
        records for virtual models. If `feedback_mode` is specified, will use
        that mode for this record only.
        """

        if feedback_mode is None:
            feedback_mode = self.feedback_mode

        record.app_id = self.app_id

        # Creates feedback futures.
        record.feedback_and_future_results = self._handle_record(
            record, feedback_mode=feedback_mode
        )
        if record.feedback_and_future_results is not None:
            record.feedback_results = [
                tup[1] for tup in record.feedback_and_future_results
            ]

        # Wait for results if mode is WITH_APP.
        if (
            feedback_mode == feedback_schema.FeedbackMode.WITH_APP
            and record.feedback_results is not None
        ):
            futs = record.feedback_results
            futures.wait(futs)

        return record
Add the given record to the database and evaluate any pre-specified
        feedbacks on it.

        The class `VirtualRecord` may be useful for creating
        records for virtual models. If `feedback_mode` is specified, will use
        that mode for this record only.
        
src/core/trulens/apps/virtual.py