Skip to content

Commit 9261ed2

Browse files
dfa1claude
andcommitted
CHANGELOG: link the TokenCounter entry to its commit
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent c787c15 commit 9261ed2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- **`core`: `TokenCounter`** — running totals of input/output tokens from `EvaluateResponse#usage()`, added via `.decorateWith(tokens::decorate)`; thread-safe, shareable across clients. [`c787c15`](https://github.com/dfa1/typesafe-java/commit/c787c15cde19ce4648a7ba09d0f21fb0474ad481)
1011
- **`core`: `Builder.decorateWith(...)` naming and docs** — named to read as additive and to pair with the `decorate(...)` factories; `Builder` javadoc and the how-to explain decorator ordering. [`59eb18b`](https://github.com/dfa1/typesafe-java/commit/59eb18bd5940d2d4bfd74f0a6b940e34a40e2929)
1112
- **`core`: `build()` rejects a second `RetryingTypeSafeClient`** — throws `IllegalStateException`, since stacked retries multiply attempts; `decorate(...)` now takes the delegate first on every decorator. [`5b6e69e`](https://github.com/dfa1/typesafe-java/commit/5b6e69eb3182a82b8a83176de0123fde87a194ea)
1213
- **Breaking: retries are opt-in** — `build()` makes one attempt per call; `Builder.maxRetries`/`initialBackoff` are gone (use `.decorateWith(RetryingTypeSafeClient::decorate)`, 5 retries from 500ms), and `Builder.decorator(...)` is renamed `decorateWith(...)`. [`90bd451`](https://github.com/dfa1/typesafe-java/commit/90bd45187ed1e71e0293cf2cfb58c08cb547e05c)

0 commit comments

Comments
 (0)