trulens.dashboard.utils.records_utils¶
    Classes¶
Functions¶
df_cell_highlight(
    score: float,
    feedback_name: str,
    feedback_directions: Dict[str, bool],
    n_cells: int = 1,
) -> List[str]
Returns the background color for a cell in a DataFrame based on the score and feedback name.
| PARAMETER | DESCRIPTION | 
|---|---|
| score | The score value to determine the background color. 
                  
                    TYPE:
                       | 
| feedback_name | The feedback name to determine the background color. 
                  
                    TYPE:
                       | 
| feedback_directions | A dictionary mapping feedback names to their directions. True if higher is better, False otherwise. 
                  
                    TYPE:
                       | 
| n_cells | The number of cells to apply the background color. Defaults to 1. 
                  
                    TYPE:
                       | 
| RETURNS | DESCRIPTION | 
|---|---|
| List[str] | A list of CSS styles representing the background color. | 
display_feedback_call(
    record_id: str,
    call: List[Dict[str, Any]],
    feedback_name: str,
    feedback_directions: Dict[str, bool],
)
Display feedback call details in a DataFrame. For OTel spans, this function filters and displays EVAL spans only, not EVAL_ROOT spans.
| PARAMETER | DESCRIPTION | 
|---|---|
| record_id | The record ID. 
                  
                    TYPE:
                       | 
| call | The feedback call details, including call metadata. | 
| feedback_name | The feedback name. 
                  
                    TYPE:
                       | 
| feedback_directions | A dictionary mapping feedback names to their directions. True if higher is better, False otherwise. |