|
// 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);
|
|
int r_config_get_max_tokens(r_config_handle cfg);
|
|
|
|
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);
|
|
|
|
int r_config_get_max_spawn_depth(r_config_handle cfg);
|
|
int r_config_get_max_total_spawns(r_config_handle cfg);
|
|
|
|
const char *r_config_get_deepsearch_system_message(void);
|
|
|
|
void r_config_set_current_prompt(r_config_handle cfg, const char *prompt);
|
|
const char *r_config_get_current_prompt(r_config_handle cfg);
|
|
|
|
#endif
|