35 lines
1.0 KiB
C
Raw Normal View History

2026-01-28 19:34:39 +01:00
// retoor <retoor@molodetz.nl>
#ifndef R_CONFIG_H
#define R_CONFIG_H
#include <stdbool.h>
typedef struct r_config_t *r_config_handle;
r_config_handle r_config_get_instance(void);
void r_config_destroy(void);
const char *r_config_get_api_url(r_config_handle cfg);
const char *r_config_get_models_url(r_config_handle cfg);
const char *r_config_get_model(r_config_handle cfg);
void r_config_set_model(r_config_handle cfg, const char *model);
const char *r_config_get_api_key(r_config_handle cfg);
const char *r_config_get_db_path(r_config_handle cfg);
bool r_config_use_tools(r_config_handle cfg);
bool r_config_use_strict(r_config_handle cfg);
bool r_config_is_verbose(r_config_handle cfg);
void r_config_set_verbose(r_config_handle cfg, bool verbose);
double r_config_get_temperature(r_config_handle cfg);
2026-01-29 06:01:05 +01:00
int r_config_get_max_tokens(r_config_handle cfg);
2026-01-28 19:34:39 +01:00
const char *r_config_get_session_id(r_config_handle cfg);
bool r_config_set_session_id(r_config_handle cfg, const char *session_id);
const char *r_config_get_system_message(r_config_handle cfg);
#endif