pub struct TrajectorySignals {
pub tool_errors: u32,
pub tool_results: u32,
pub assistant_turns: u32,
pub repeated_tool_calls: u32,
}Expand description
Raw counts read off an agent conversation, before they are collapsed into a
DifficultyHint.
Deliberately counts, not content: how many tool results failed, not what they said. A router
needs to know a session is going badly; it does not need the stack trace, and Features is
not a place raw prompt text may ever land.
Extraction lives in the proxy (it parses HTTP bodies, which is I/O-shaped); the scoring lives here so it stays deterministic, versioned, and testable without a server.
Fields§
§tool_errors: u32Tool results in the recent window that reported an error.
tool_results: u32Tool results in the recent window, total. Zero means “no tool activity to judge”.
assistant_turns: u32Assistant turns in the conversation — a proxy for how long this has been going on.
repeated_tool_calls: u32Repeated identical tool invocations: the agent trying the same thing again.