docs(weave): fix agent quickstart usage, cost, and conversation link#2913
Open
gtarpenning wants to merge 1 commit into
Open
docs(weave): fix agent quickstart usage, cost, and conversation link#2913gtarpenning wants to merge 1 commit into
gtarpenning wants to merge 1 commit into
Conversation
The custom-agents quickstart recorded only input/output tokens and no model id, so agent spans following it rendered 0 tokens / no cost, especially on cache-heavy providers like Anthropic. - record complete Usage incl cache_read/cache_creation tokens - use record() and set a priceable response_model for cost - add an Anthropic example (input_tokens must include cached tokens) - document agent_conversation_path for deep-linking a conversation Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
📚 Mintlify Preview Links📝 Changed (1 total)📄 Pages (1)
🤖 Generated automatically when Mintlify deployment succeeds |
Contributor
🔗 Link Checker ResultsPreview: https://wb-21fd5541-griffin-wb-37455-agents-quickstart-usage.mintlify.site |
gtarpenning
marked this pull request as ready for review
July 15, 2026 23:11
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.
Summary
0 in / 0 outandCost -(worst on cache-heavy providers like Anthropic). Fixes WB-37455.Usage(incl.cache_read/cache_creation), userecord(), set a priceableresponse_model.input_tokensmust include cached tokens, since Weave subtracts them) and documentagent_conversation_pathfor deep-linking.Testing
docs-only; snippets checked against the weave SDK conversation/cost APIs.