chore: release main#461
Merged
stainless-app[bot] merged 4 commits intoJul 14, 2026
Merged
Conversation
#460) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
4266454 to
bc499ed
Compare
bc499ed to
98f58e1
Compare
declan-scale
approved these changes
Jul 14, 2026
Contributor
Author
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Stainless prepared a new release
agentex-client: 0.19.0
0.19.0 (2026-07-14)
Full Changelog: agentex-client-v0.18.0...agentex-client-v0.19.0
Features
Bug Fixes
agentex-sdk: 0.19.0
0.19.0 (2026-07-14)
Full Changelog: agentex-sdk-v0.18.0...agentex-sdk-v0.19.0
Chores
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Greptile Summary
This is a release PR bumping both
agentex-clientandagentex-sdkfrom0.18.0to0.19.0, shipping two features and a build fix: (1) token usage is now emitted on spans for SGP billing via a newTurnSpan/turn_span()helper and per-call usage injection into LiteLLM andTemporalStreamingModelspans; (2) span body exceptions are now captured and exported asSGPStatus=ERROR.TurnSpanwraps rollup usage intospan.data["usage"]; per-call spans get usage viaspan.output["usage"]from LiteLLM and theTemporalStreamingModel. A_stream_kwargs_with_usagehelper enablesstream_options.include_usagefor litellm streaming, andconcat_completion_chunksis fixed withzip_longestso usage-only final chunks (empty choices) are no longer dropped.Trace.span()/AsyncTrace.span()now callset_span_error(span, exc)on exception;_build_sgp_spanreads the stored error and callssgp_span.set_error()to propagatestatus=ERRORto SGP.TemporalTracingModelProviderand related classes (superseded byTemporalStreamingModel) are deleted, resolving pyright build failures;scripts/lintis updated to pass-p .explicitly.Confidence Score: 5/5
Safe to merge — all changes are well-scoped billing/observability additions with thorough test coverage and no modifications to core workflow or data-path logic.
The PR introduces token usage recording on spans and span-level error capture. Both features follow the existing reserved-key convention in span.data, are no-ops when tracing is disabled, and are covered by dedicated unit tests. The concat_completion_chunks zip_longest fix is correct and tested. The deleted TemporalTracingModelProvider was a build-failure source; its removal is clean. No auth, data mutation, or critical control-flow paths are touched.
No files require special attention — the key billing logic in TurnSpan.record_usage and the LiteLLM usage injection are each accompanied by tests that cover the happy path, the opt-out path, and the no-usage fallback.
Important Files Changed
Reviews (3): Last reviewed commit: "chore: release main" | Re-trigger Greptile