|
Entropic 2.14.3
Local-first agentic inference engine
|
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. | |
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.
Definition at line 41 of file context_fit.h.
| int entropic::ContextFit::context_length = 0 |
Tier's PER-SESSION context window.
Definition at line 43 of file context_fit.h.
| int entropic::ContextFit::prompt_tokens = 0 |
Rendered + tokenized prompt for this turn.
Definition at line 42 of file context_fit.h.
| int entropic::ContextFit::system_tokens = 0 |
Tokens attributable to the system prompt.
Definition at line 44 of file context_fit.h.
| std::size_t entropic::ContextFit::tool_bytes = 0 |
Raw bytes of the staged tool JSON.
Definition at line 46 of file context_fit.h.
| int entropic::ContextFit::tool_count = 0 |
Number of staged tool definitions.
Definition at line 47 of file context_fit.h.
| int entropic::ContextFit::tool_tokens = 0 |
Tokens attributable to the staged tools.
Definition at line 45 of file context_fit.h.