Move token usage calculation into agent logic#91
Conversation
64b4763 to
7a2c191
Compare
c1a2897 to
212fd23
Compare
|
TODO from #90: Add This will provide an explicit mapping between registry names ( Context: #90 added an interim fix where |
Entire-Checkpoint: 9c0fb663da40
Entire-Checkpoint: d6da3f10e6fe
123a9dc to
12e7e04
Compare
Add Type() to Agent interface to expose the agent type identifier (e.g., "Claude Code", "Gemini CLI") that's stored in metadata and trailers. This provides a clean way to get the type identifier from an agent instance. - Name() returns the registry key (e.g., "claude-code", "gemini") - Type() returns the type identifier (e.g., "Claude Code", "Gemini CLI") Also updates GetByAgentType to accept both type identifiers and registry keys for flexibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Entire-Checkpoint: 720c20f08988
97fdd24 to
52b3d55
Compare
|
Done in commit 52b3d55 - added |
Introduces compile-time type safety for agent identifiers: - AgentName: registry keys (e.g., "claude-code", "gemini") - AgentType: display names stored in metadata (e.g., "Claude Code") This distinguishes between the two identifier forms and prevents accidental misuse throughout the codebase. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Entire-Checkpoint: cd742eb8d913
khaong
left a comment
There was a problem hiding this comment.
I added the AgentType and AgentName as types so we have a little bit of type safety going forwards
Entire-Checkpoint: 6af107c86703
Entire-Checkpoint: 6af107c86703
Entire-Checkpoint: d87ee3bab4de
Uh oh!
There was an error while loading. Please reload this page.