|
Count AIHelper tokens in session metrics
Adds prompt/completion token fields to LLMResponse, populated by OllamaBackend.complete(). AIHelper emits AIHelperTokensUsed into the current event sink after each LLM call; run_stream drains it into _subagent_tokens so AIHelper usage is reflected in the turn token delta. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
|---|
|
|
| navi/core/agent.py |
|---|
| navi/core/ai_helper.py |
|---|
| navi/core/events.py |
|---|
| navi/llm/base.py |
|---|
| navi/llm/ollama.py |
|---|