Module globals

Source
Expand description

Global values and configuration that apply to all of FerricLink.

This module provides global settings similar to LangChain’s globals.py, but with Rust’s type safety and thread safety guarantees.

Structs§

GlobalConfig
Global configuration state for FerricLink

Functions§

clear_llm_cache
Clear the global LLM cache
disable_debug
Convenience function to disable debug mode
disable_verbose
Convenience function to disable verbose mode
enable_debug
Convenience function to enable debug mode
enable_verbose
Convenience function to enable verbose mode
get_debug
Get the global debug setting
get_globals
Get the global configuration instance
get_verbose
Get the global verbose setting
globals_summary
Get a summary of current global settings
has_llm_cache
Check if LLM cache is enabled globally
init_globals
Initialize the global configuration
is_debug
Check if debug mode is enabled globally
is_verbose
Check if verbose mode is enabled globally
reset_globals
Reset all global settings to their default values
set_debug
Set the global debug setting
set_llm_cache
Set the global LLM cache
set_verbose
Set the global verbose setting
toggle_debug
Convenience function to toggle debug mode
toggle_verbose
Convenience function to toggle verbose mode