Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
identity.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
16#pragma once
17
19
20#include <cstdint>
21#include <string>
22#include <unordered_map>
23#include <vector>
24
25namespace entropic {
26
31enum class IdentityOrigin : uint8_t {
32 STATIC = 0,
33 DYNAMIC = 1,
34};
35
49 std::string name;
50 std::string system_prompt;
51 std::vector<std::string> focus;
52 std::vector<std::string> examples;
53 std::string grammar_id;
54 std::string auto_chain;
55 std::vector<std::string> allowed_tools;
56 std::vector<std::string> bash_commands;
57 std::vector<MCPKey> mcp_keys;
58 std::string adapter_path;
59 int max_output_tokens = 1024;
60 float temperature = 0.7f;
61 float repeat_penalty = 1.1f;
62 bool enable_thinking = false;
63 bool interstitial = false;
64 bool routable = true;
65 bool explicit_completion = false;
66 std::unordered_map<std::string, PhaseConfig> phases;
70};
71
72} // namespace entropic
Configuration structs with defaults.
Activate model on GPU (WARM → ACTIVE).
IdentityOrigin
Origin of an identity – how it was created.
Definition identity.h:31
@ DYNAMIC
Created at runtime via API.
@ STATIC
Loaded from YAML frontmatter file at startup.
Full identity configuration.
Definition identity.h:48
bool explicit_completion
Requires explicit entropic.complete to finish.
Definition identity.h:65
std::vector< std::string > bash_commands
Allowed bash commands.
Definition identity.h:56
bool enable_thinking
Default enable_thinking.
Definition identity.h:62
float temperature
Default temperature.
Definition identity.h:60
bool interstitial
Interstitial (non-routable, triggered by tools)
Definition identity.h:63
std::string auto_chain
Auto-chain target tier name (empty = none)
Definition identity.h:54
bool routable
Participates in tier routing.
Definition identity.h:64
std::string name
Unique identity name (e.g., "eng", "npc_blacksmith")
Definition identity.h:49
std::vector< std::string > focus
Classification focus keywords (min 1)
Definition identity.h:51
int max_iterations_override
Per-identity max_iterations (-1 = global, P3-18)
Definition identity.h:68
IdentityOrigin origin
How this identity was created.
Definition identity.h:67
std::string adapter_path
LoRA adapter path (v1.9.2, empty = base model)
Definition identity.h:58
std::vector< std::string > examples
Few-shot classification examples.
Definition identity.h:52
std::string system_prompt
Full system prompt text (markdown body)
Definition identity.h:50
std::vector< MCPKey > mcp_keys
MCP authorization keys (v1.9.4)
Definition identity.h:57
std::vector< std::string > allowed_tools
Tool filter list (empty = all tools via identity)
Definition identity.h:55
int max_tool_calls_per_turn_override
Per-identity tool cap (-1 = global, P3-18)
Definition identity.h:69
int max_output_tokens
Default max output tokens.
Definition identity.h:59
std::unordered_map< std::string, PhaseConfig > phases
Named inference phases.
Definition identity.h:66
float repeat_penalty
Default repeat penalty.
Definition identity.h:61
std::string grammar_id
Grammar registry key (empty = no grammar)
Definition identity.h:53