Functions
make_debug_logger​
Create a logger for debugging.Parameters
filter
(Any
) - The filter functionto apply to the logger, defaults to None (no filter). Default:None
Returns
Logger
: The loggerExample
from tecton_gen_ai.testing.utils import make_debug_loggerlogger = make_debug_logger(filter=lambda record: "invoking" in record.getMessage())
make_local_vector_db_config​
Create a local vector db configuration for testing.Parameters
path
(Optional
[str
]) - The path to the local vector db, defaults to None (system temp directory / test.db). Default:None
remove_if_exists
(bool
) - Whether to remove the existing db file, defaults to True. Default:true
Returns
Any
: The local vector db configuration
print_md​
Print markdown text in a rich format if rich is installed, otherwise use IPython.Parameters
text
(str
) - The markdown text to print
Returns
None