Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: no hard-coded context window sizes, the window is what the API reports

This commit is contained in:
damocles 2026-11-15 20:11:26 +01:00 • committed by mara
commit 1bfee54414

View file

@ -49,7 +49,8 @@ export interface AgentStateHeader {
model_source: InferenceSource;
effort_source: InferenceSource;
resolved_model: string | null;
context_window_tokens: number;
// Null until the agent's first turn reports the window.
context_window_tokens: number | null;
ctx_usage: TokenUsage | null;
cost_usage: TokenUsage | null;
// Absent from an agent that predates the field.