Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::IdentityConfig Struct Reference

Full identity configuration. More...

#include <entropic/config/identity.h>

Public Attributes

std::string name
 Unique identity name (e.g., "eng", "npc_blacksmith")
 
std::string system_prompt
 Full system prompt text (markdown body)
 
std::vector< std::string > focus
 Classification focus keywords (min 1)
 
std::vector< std::string > examples
 Few-shot classification examples.
 
std::string grammar_id
 Grammar registry key (empty = no grammar)
 
std::string auto_chain
 Auto-chain target tier name (empty = none)
 
std::vector< std::string > allowed_tools
 Tool filter list (empty = all tools via identity)
 
std::vector< std::string > bash_commands
 Allowed bash commands.
 
std::vector< MCPKeymcp_keys
 MCP authorization keys (v1.9.4)
 
std::string adapter_path
 LoRA adapter path (v1.9.2, empty = base model)
 
int max_output_tokens = 1024
 Default max output tokens.
 
float temperature = 0.7f
 Default temperature.
 
float repeat_penalty = 1.1f
 Default repeat penalty.
 
bool enable_thinking = false
 Default enable_thinking.
 
bool interstitial = false
 Interstitial (non-routable, triggered by tools)
 
bool routable = true
 Participates in tier routing.
 
bool explicit_completion = false
 Requires explicit entropic.complete to finish.
 
std::unordered_map< std::string, PhaseConfigphases
 Named inference phases.
 
IdentityOrigin origin = IdentityOrigin::DYNAMIC
 How this identity was created.
 
int max_iterations_override = -1
 Per-identity max_iterations (-1 = global, P3-18)
 
int max_tool_calls_per_turn_override = -1
 Per-identity tool cap (-1 = global, P3-18)
 

Detailed Description

Full identity configuration.

All fields from IdentityFrontmatter are present. Dynamic identities set these programmatically; static identities set them from YAML parsing.

The origin field distinguishes static from dynamic identities. This matters for lifecycle: static identities cannot be destroyed via the dynamic identity API (they are owned by the config loader).

Version
1.9.6 (extended from v1.8.6 IdentityFrontmatter)

Definition at line 48 of file identity.h.

Member Data Documentation

◆ adapter_path

std::string entropic::IdentityConfig::adapter_path

LoRA adapter path (v1.9.2, empty = base model)

Definition at line 58 of file identity.h.

◆ allowed_tools

std::vector<std::string> entropic::IdentityConfig::allowed_tools

Tool filter list (empty = all tools via identity)

Definition at line 55 of file identity.h.

◆ auto_chain

std::string entropic::IdentityConfig::auto_chain

Auto-chain target tier name (empty = none)

Definition at line 54 of file identity.h.

◆ bash_commands

std::vector<std::string> entropic::IdentityConfig::bash_commands

Allowed bash commands.

Definition at line 56 of file identity.h.

◆ enable_thinking

bool entropic::IdentityConfig::enable_thinking = false

Default enable_thinking.

Definition at line 62 of file identity.h.

◆ examples

std::vector<std::string> entropic::IdentityConfig::examples

Few-shot classification examples.

Definition at line 52 of file identity.h.

◆ explicit_completion

bool entropic::IdentityConfig::explicit_completion = false

Requires explicit entropic.complete to finish.

Definition at line 65 of file identity.h.

◆ focus

std::vector<std::string> entropic::IdentityConfig::focus

Classification focus keywords (min 1)

Definition at line 51 of file identity.h.

◆ grammar_id

std::string entropic::IdentityConfig::grammar_id

Grammar registry key (empty = no grammar)

Definition at line 53 of file identity.h.

◆ interstitial

bool entropic::IdentityConfig::interstitial = false

Interstitial (non-routable, triggered by tools)

Definition at line 63 of file identity.h.

◆ max_iterations_override

int entropic::IdentityConfig::max_iterations_override = -1

Per-identity max_iterations (-1 = global, P3-18)

Definition at line 68 of file identity.h.

◆ max_output_tokens

int entropic::IdentityConfig::max_output_tokens = 1024

Default max output tokens.

Definition at line 59 of file identity.h.

◆ max_tool_calls_per_turn_override

int entropic::IdentityConfig::max_tool_calls_per_turn_override = -1

Per-identity tool cap (-1 = global, P3-18)

Definition at line 69 of file identity.h.

◆ mcp_keys

std::vector<MCPKey> entropic::IdentityConfig::mcp_keys

MCP authorization keys (v1.9.4)

Definition at line 57 of file identity.h.

◆ name

std::string entropic::IdentityConfig::name

Unique identity name (e.g., "eng", "npc_blacksmith")

Definition at line 49 of file identity.h.

◆ origin

IdentityOrigin entropic::IdentityConfig::origin = IdentityOrigin::DYNAMIC

How this identity was created.

Definition at line 67 of file identity.h.

◆ phases

std::unordered_map<std::string, PhaseConfig> entropic::IdentityConfig::phases

Named inference phases.

Definition at line 66 of file identity.h.

◆ repeat_penalty

float entropic::IdentityConfig::repeat_penalty = 1.1f

Default repeat penalty.

Definition at line 61 of file identity.h.

◆ routable

bool entropic::IdentityConfig::routable = true

Participates in tier routing.

Definition at line 64 of file identity.h.

◆ system_prompt

std::string entropic::IdentityConfig::system_prompt

Full system prompt text (markdown body)

Definition at line 50 of file identity.h.

◆ temperature

float entropic::IdentityConfig::temperature = 0.7f

Default temperature.

Definition at line 60 of file identity.h.


The documentation for this struct was generated from the following file: