|
// retoor <retoor@molodetz.nl>
|
|
|
|
#ifndef R_INTERFACES_CONFIG_H
|
|
#define R_INTERFACES_CONFIG_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef struct config_t *config_handle;
|
|
|
|
config_handle config_create(void);
|
|
void config_destroy(config_handle cfg);
|
|
|
|
const char *config_get_api_url(config_handle cfg);
|
|
const char *config_get_models_url(config_handle cfg);
|
|
const char *config_get_api_key(config_handle cfg);
|
|
const char *config_get_model(config_handle cfg);
|
|
const char *config_get_db_path(config_handle cfg);
|
|
const char *config_get_session_id(config_handle cfg);
|
|
const char *config_get_system_message(config_handle cfg);
|
|
|
|
double config_get_temperature(config_handle cfg);
|
|
bool config_use_tools(config_handle cfg);
|
|
bool config_use_strict(config_handle cfg);
|
|
bool config_is_verbose(config_handle cfg);
|
|
|
|
r_status_t config_set_model(config_handle cfg, const char *model);
|
|
r_status_t config_set_session_id(config_handle cfg, const char *session_id);
|
|
void config_set_verbose(config_handle cfg, bool verbose);
|
|
|
|
#endif
|