Skip to content

trulens.dashboard.ux.components

trulens.dashboard.ux.components

Functions

write_or_json

write_or_json(st, obj)

Dispatch either st.json or st.write depending on content of obj. If it is a string that can parses into strictly json (dict), use st.json, otherwise use st.write.

draw_calls

draw_calls(record: Record, index: int) -> None

Draw the calls recorded in a record.