Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic_identity.cpp File Reference

C API implementation for identity management. More...

Include dependency graph for entropic_identity.cpp:

Go to the source code of this file.

Functions

static entropic_error_t check_identity_mgr (entropic_handle_t h)
 Check handle prerequisites for identity manager APIs.
 
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.
 

Variables

static auto logger = entropic::log::get("facade.identity")
 

Detailed Description

C API implementation for identity management.

Implements entropic_load_identity() and entropic_get_identity() from entropic.h. Currently stubs — real wiring to config/core subsystems happens when the facade owns the full engine state.

Version
2.0.0

Definition in file entropic_identity.cpp.

Function Documentation

◆ check_identity_mgr()

static entropic_error_t check_identity_mgr ( entropic_handle_t  h)
static

Check handle prerequisites for identity manager APIs.

Parameters
hEngine handle.
Returns
ENTROPIC_OK if valid, error code otherwise.

Definition at line 28 of file entropic_identity.cpp.

◆ entropic_get_identity()

ENTROPIC_EXPORT entropic_error_t entropic_get_identity ( entropic_handle_t  handle,
char **  identity_json 
)

Get an identity's config as JSON.

Get the current active identity as a JSON string.

Parameters
handleEngine handle returned by entropic_create.
identity_jsonOut-param: newly allocated JSON string (caller owns; free with entropic_free).
Returns
ENTROPIC_OK on success, error otherwise.

Definition at line 68 of file entropic_identity.cpp.

◆ entropic_load_identity()

ENTROPIC_EXPORT entropic_error_t entropic_load_identity ( entropic_handle_t  handle,
const char *  identity_name 
)

Load an identity by name — verify it exists.

Load an identity by name from the configuration.

Parameters
handleEngine handle returned by entropic_create.
identity_nameIdentity name from configured tier set.
Returns
ENTROPIC_OK if identity exists, error otherwise.

Definition at line 44 of file entropic_identity.cpp.

Variable Documentation

◆ logger

auto logger = entropic::log::get("facade.identity")
static

Definition at line 19 of file entropic_identity.cpp.