Skip to content

docs(weave): fix agent quickstart usage, cost, and conversation link#2913

Open
gtarpenning wants to merge 1 commit into
mainfrom
griffin/wb-37455-agents-quickstart-usage
Open

docs(weave): fix agent quickstart usage, cost, and conversation link#2913
gtarpenning wants to merge 1 commit into
mainfrom
griffin/wb-37455-agents-quickstart-usage

Conversation

@gtarpenning

@gtarpenning gtarpenning commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

  • The custom-agents quickstart recorded only input/output tokens and no model id, so spans rendered 0 in / 0 out and Cost - (worst on cache-heavy providers like Anthropic). Fixes WB-37455.
  • Record complete Usage (incl. cache_read/cache_creation), use record(), set a priceable response_model.
  • Add an Anthropic example (input_tokens must include cached tokens, since Weave subtracts them) and document agent_conversation_path for deep-linking.

Testing

docs-only; snippets checked against the weave SDK conversation/cost APIs.

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>
@mintlify

mintlify Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jul 15, 2026, 9:26 PM

@github-actions

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (1 total)

📄 Pages (1)

File Preview
weave/custom-agents-quickstart.mdx Custom Agents Quickstart

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: c9ec2f0 at 2026-07-15 21:27:17 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

⚠️ Some issues were detected

Preview: https://wb-21fd5541-griffin-wb-37455-agents-quickstart-usage.mintlify.site

Full Github Actions output

@gtarpenning
gtarpenning marked this pull request as ready for review July 15, 2026 23:11
@gtarpenning
gtarpenning requested a review from a team as a code owner July 15, 2026 23:11
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