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

One turn's irreducible prompt, measured against the tier budget. More...

#include </home/runner/work/entropic/entropic/src/inference/context_fit.h>

Public Attributes

int prompt_tokens = 0
 Rendered + tokenized prompt for this turn.
 
int context_length = 0
 Tier's PER-SESSION context window.
 
int system_tokens = 0
 Tokens attributable to the system prompt.
 
int tool_tokens = 0
 Tokens attributable to the staged tools.
 
std::size_t tool_bytes = 0
 Raw bytes of the staged tool JSON.
 
int tool_count = 0
 Number of staged tool definitions.
 

Detailed Description

One turn's irreducible prompt, measured against the tier budget.

"Irreducible" is what the backend is handed AFTER the engine's context management has done everything it can — check_compaction and prune_old_tool_results both run before the generate dispatch. The staged tool block is the part compaction provably cannot shrink: it is rebuilt from tier config on every render.

Version
2.13.0

Definition at line 41 of file context_fit.h.

Member Data Documentation

◆ context_length

int entropic::ContextFit::context_length = 0

Tier's PER-SESSION context window.

Definition at line 43 of file context_fit.h.

◆ prompt_tokens

int entropic::ContextFit::prompt_tokens = 0

Rendered + tokenized prompt for this turn.

Definition at line 42 of file context_fit.h.

◆ system_tokens

int entropic::ContextFit::system_tokens = 0

Tokens attributable to the system prompt.

Definition at line 44 of file context_fit.h.

◆ tool_bytes

std::size_t entropic::ContextFit::tool_bytes = 0

Raw bytes of the staged tool JSON.

Definition at line 46 of file context_fit.h.

◆ tool_count

int entropic::ContextFit::tool_count = 0

Number of staged tool definitions.

Definition at line 47 of file context_fit.h.

◆ tool_tokens

int entropic::ContextFit::tool_tokens = 0

Tokens attributable to the staged tools.

Definition at line 45 of file context_fit.h.


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