zeroclaw/src/agent
s04 6f1cf8bc81 feat(provider): add usage field to ChatResponse
Add a lightweight TokenUsage struct to providers::traits with
input_tokens and output_tokens fields. Add usage: Option<TokenUsage>
to ChatResponse and update all construction sites across providers
and agent modules with usage: None.

This is the first step toward capturing token usage data from LLM
API responses. Currently all sites set usage: None — subsequent
commits will parse actual usage from each provider's response format.
2026-02-21 12:29:02 +08:00
..
agent.rs feat(provider): add usage field to ChatResponse 2026-02-21 12:29:02 +08:00
classifier.rs feat(agent): add rule-based query classification for automatic model routing 2026-02-18 14:41:58 +08:00
dispatcher.rs feat(provider): add usage field to ChatResponse 2026-02-21 12:29:02 +08:00
loop_.rs feat(provider): add usage field to ChatResponse 2026-02-21 12:29:02 +08:00
memory_loader.rs fix(memory): stop autosaving assistant summaries and filter legacy entries 2026-02-20 01:14:08 +08:00
mod.rs feat(agent): add rule-based query classification for automatic model routing 2026-02-18 14:41:58 +08:00
prompt.rs feat(skills): add configurable compact skills prompt injection 2026-02-21 00:00:51 +08:00
tests.rs feat(provider): add usage field to ChatResponse 2026-02-21 12:29:02 +08:00