Skip to content

Measure Search and inference usage in the Groq agent - #62

Draft
georgeatparallel wants to merge 1 commit into
parallel-web:mainfrom
georgeatparallel:feat/groq-search-economics
Draft

Measure Search and inference usage in the Groq agent#62
georgeatparallel wants to merge 1 commit into
parallel-web:mainfrom
georgeatparallel:feat/groq-search-economics

Conversation

@georgeatparallel

Copy link
Copy Markdown
Collaborator

Summary

  • Migrate the existing Groq/Vercel AI SDK agent from legacy beta Search to GA Search.
  • Report measured Search latency and retrieved context, provider-reported model tokens, and clearly labeled configurable cost estimates in the existing stream and UI.
  • Preserve streaming and make deterministic tests work on Node 20, 22, and 24 without changing package-wide module configuration.

Validation

  • npm test: 5 tests passing on Node 20, 22, and 24.
  • Strict economics-module typecheck and complete Worker typecheck.
  • Wrangler dry-run bundle succeeds without deploying.
  • One bounded live Turbo Search request returned one result and one Search SKU.

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