![]() |
LlamaLib
v2.0.2
Cross-platform library for local LLMs
|
Registry for managing LLM provider instances. More...
#include <LLM.h>
Public Member Functions | |
| void | register_instance (LLMProvider *service) |
| Register an LLM provider instance. | |
| void | unregister_instance (LLMProvider *service) |
| Unregister an LLM provider instance. | |
| std::vector< LLMProvider * > | get_instances () |
| Get all registered provider instances. | |
| void | set_debug_level (int level) |
| Set global debug level. | |
| const int | get_debug_level () |
| Get current debug level. | |
| void | set_log_callback (CharArrayFn callback) |
| Set global log callback. | |
| const CharArrayFn | get_log_callback () |
| Get current log callback. | |
Static Public Member Functions | |
| static void | inject_registry (LLMProviderRegistry *instance) |
| Inject a custom registry instance. | |
| static LLMProviderRegistry & | instance () |
| Get the singleton registry instance. | |
Static Public Attributes | |
| static bool | initialised = false |
| Whether the registry has been initialized. | |
Registry for managing LLM provider instances.
Singleton pattern implementation for centralized management of LLM provider instances, debugging, and logging configuration
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |