Skip to content

Fix Design: cost_usd Field in Rust Usage Struct - #90

Open
Ken Chau (kenotron-ms) wants to merge 1 commit into
mainfrom
resolve/fix-20260616-235131
Open

Fix Design: cost_usd Field in Rust Usage Struct#90
Ken Chau (kenotron-ms) wants to merge 1 commit into
mainfrom
resolve/fix-20260616-235131

Conversation

@kenotron-ms

Copy link
Copy Markdown
Contributor

Automated fix from triage findings. See docs/fix-design.md and docs/fix-plan.md.

…onversions

- Add cost_usd: Option<String> field to Rust messages::Usage struct
- Wire cost_usd through both native→proto and proto→native conversions
- Add cost_usd roundtrip test to verify field preservation
- Add cost_usd to proto Usage message (field 7)
- Fix test docstring: estimated_cost was deprecated, not removed
- Regenerate uv.lock (1.5.1 → 1.6.0)

Fixes the gap where Python Usage had cost_usd but Rust did not, causing
conversion layer to hardcode None or drop incoming values.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
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