Skip to content

Commit e34abff

Browse files
Version Packages
1 parent 1fa2647 commit e34abff

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.changeset/ai-metadata-public-api.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/evlog/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# evlog
22

3+
## 2.14.0
4+
5+
### Minor Changes
6+
7+
- [#295](https://github.com/HugoRCD/evlog/pull/295) [`aa9984f`](https://github.com/HugoRCD/evlog/commit/aa9984f50259b292e8d1a2a671b600fcb74844db) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Expose AI SDK execution metadata as a public API on `AILogger`. Three new methods let app code read the same data that gets attached to wide events: `getMetadata()` returns an immutable snapshot of the run (model, provider, tokens, calls, steps, tool calls, cost, finish reason, embeddings), `getEstimatedCost()` returns the dollar cost computed from the configured pricing map, and `onUpdate(cb)` subscribes to incremental snapshots emitted on every step, embedding, error, and integration finish (returns an unsubscribe function). New types `AIMetadata` (alias for `AIEventData`) and `AIMetadataListener` are exported. `model` and `provider` on `AIMetadata` are now optional to reflect early-snapshot reality (e.g. embedding-only runs).
8+
39
## 2.13.0
410

511
### Minor Changes

packages/evlog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evlog",
3-
"version": "2.13.0",
3+
"version": "2.14.0",
44
"description": "Wide event logging library with structured error handling. Inspired by LoggingSucks.",
55
"author": "HugoRCD <contact@hrcd.fr>",
66
"homepage": "https://evlog.dev",

0 commit comments

Comments
 (0)