AGI / cpp /config.h
Dmitry Beresnev
Refactor the C++ LLM manager into modular components, moves Python modules under python/, and keeps the current control-plane behavior intact. The C++ server now has clearer separation for config, model lifecycle, runtime services, request parsing, HTTP helpers, and server routing, while Docker build/runtime paths were updated to compile multiple C++ files and load Python code from the new package folder
332826f
raw
history blame contribute delete
448 Bytes
#pragma once
#include <string>
#include "llm_manager_types.h"
std::string get_env_or(const char *name, const std::string &fallback);
int get_env_int_or(const char *name, int fallback);
std::string trim_copy(const std::string &value);
std::string strip_quotes(const std::string &value);
bool parse_bool_or(const std::string &value, bool fallback);
Role parse_role_or(const std::string &value, Role fallback);
ManagerConfig load_manager_config();