Skip to content

docs(context): add AI SDK usage flow#434

Open
EfeDurmaz16 wants to merge 1 commit into
vercel:mainfrom
EfeDurmaz16:efe/context-ai-sdk-usage-docs
Open

docs(context): add AI SDK usage flow#434
EfeDurmaz16 wants to merge 1 commit into
vercel:mainfrom
EfeDurmaz16:efe/context-ai-sdk-usage-docs

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

Adds a concrete AI SDK usage flow for the Context component.

Fixes #425.

Changes

  • Adds an API route example using streamText and returning response usage
  • Adds a client page example that passes usage into Context
  • Shows ContextTrigger, ContextContent, usage breakdown components, and ContextContentFooter together in a realistic flow

Verification

  • pnpm install --frozen-lockfile
  • pnpm --filter docs build
  • git diff --check

Note: scoped ultracite check for the single MDX file exits with “Expected at least one target file” because the path is ignored by its target rules, so docs build was used as the stronger validation.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@EfeDurmaz16 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add Simple Usage Examples for Context Component using AI SDK

1 participant