46 const char* identity_name) {
54 logger->info(
"load_identity: name='{}' found={}", identity_name, found);
70 char** identity_json) {
78 auto* cfg = names.empty()
82 auto j = facade_json::obj();
83 j[
"name"] = cfg->name;
85 ?
"static" :
"dynamic";
86 *identity_json = strdup(j.dump().c_str());
Private definition of the entropic_engine struct.
Public C API for the Entropic inference engine.
ENTROPIC_EXPORT entropic_error_t entropic_load_identity(entropic_handle_t handle, const char *identity_name)
Load an identity by name — verify it exists.
ENTROPIC_EXPORT entropic_error_t entropic_get_identity(entropic_handle_t handle, char **identity_json)
Get an identity's config as JSON.
static entropic_error_t check_identity_mgr(entropic_handle_t h)
Check handle prerequisites for identity manager APIs.
entropic_error_t
Error codes returned by all C API functions.
@ ENTROPIC_ERROR_IDENTITY_NOT_FOUND
Identity name not in config (v1.8.9)
@ ENTROPIC_ERROR_INVALID_ARGUMENT
NULL pointer, empty string, out-of-range value.
@ ENTROPIC_ERROR_INVALID_HANDLE
NULL or destroyed handle (v1.8.9)
@ ENTROPIC_ERROR_INVALID_STATE
Operation not valid in current state (e.g., generate before activate)
JSON serialization helpers for the facade.
spdlog initialization and logger access.
ENTROPIC_EXPORT std::shared_ptr< spdlog::logger > get(const std::string &name)
Get or create a named logger.
@ STATIC
Loaded from YAML frontmatter file at startup.
Engine handle struct — owns all subsystems.
std::unique_ptr< entropic::IdentityManager > identity_manager
Identity lifecycle.