Skip to content

πŸ¦‹ New version release - #493

Merged
brentrager merged 1 commit into
mainfrom
changeset-release/main
Aug 19, 2026
Merged

πŸ¦‹ New version release#493
brentrager merged 1 commit into
mainfrom
changeset-release/main

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@smooai/smooth-operator@1.54.3

Patch Changes

  • 29f1d87: Make Go, Python, TypeScript and .NET tool spans self-identifying, and record cost on all four.

    All four engines omitted gen_ai.system from the tool span. OTLP consumers that gate on that attribute β€” SmooAI's does β€” therefore discarded every tool span those engines ever emitted, exactly as the Rust engine did. Each now carries its own gen_ai.system, gen_ai.operation.name (literally chat / tool, taken verbatim by ingest), gen_ai.conversation.id, and smooai.org_id where the engine has one. Child spans need their own copies: an ingest merges resource attributes with that span's attributes and does not inherit from the parent.

    Cost reaches the span for the first time in all four: gen_ai.usage.cost_usd when positive, otherwise smooai.gen_ai.cost_unavailable = "unpriced". A gateway zero means the model is unpriced, not free, so it is never recorded as a cost.

    Two fabricated values found and removed rather than ported:

    • .NET returned a literal TurnUsage(0, …) on the cost fallback path, under an XML doc note reading "0 means 'nothing priced it', not 'free'" β€” the comment was correct and the code shipped the zero anyway.
    • .NET published input_tokens = 0 because it guarded on sawUsage alone; a usage chunk with null counts sets that flag while both totals collapse to 0. The other three engines guard on the counts themselves.

    Each engine has a test that fails without its change, verified by reverting and restoring.

@smooai/smooth-operator-web-chat-example@0.0.97

Patch Changes

  • Updated dependencies [29f1d87]
    • @smooai/smooth-operator@1.54.3

@brentrager
brentrager force-pushed the changeset-release/main branch from 8749bc0 to 33da2a0 Compare August 18, 2026 23:38
@brentrager
brentrager merged commit bfc81bc into main Aug 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant