Add advisors module: custom logging, PII redaction and token-budget advisors
Tests pin down chain ordering (including ties), BaseAdvisor stream behaviour, redaction order versus memory and logging, the tool loop, and how a refusal surfaces on calls, streams and over HTTP. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ja4jkzrbQ4LQZBNrb5mkZE
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Token budget and the tool loop
|
||||
|
||||
the model reports 100+10 tokens for round 1 (asks for the tool) and 130+20 for round 2 (answers)
|
||||
so the provider would bill 260 tokens for this one question
|
||||
|
||||
budget advisor at +250 (outside the tool loop): recorded 260
|
||||
budget advisor at +400 (inside the tool loop): recorded 260
|
||||
Reference in New Issue
Block a user