Skip to content

Conversation

@Sahil5963
Copy link
Contributor

Summary

  • Add playground app for multi-provider testing
  • Add showcase app with real-world demo scenarios
  • Add generate-text route example

New Examples

Playground (examples/playground/)

Multi-provider testing environment:

  • OpenAI, Anthropic, Google side-by-side
  • Theme switcher (light/dark)
  • Settings panel for adjusting parameters

Showcase (examples/showcase/)

Real-world demo applications:

  • Shopping Assistant - E-commerce copilot with cart & checkout
  • Dashboard Assistant - Admin tools with data tables
  • Debug Assistant - Developer tools with screenshots & console
  • Content Editor - Rich text editor with AI suggestions

Generate Text Route

Low-level generateText() example using Anthropic provider directly.

Test plan

  • Run playground: cd examples/playground && pnpm install && pnpm dev
  • Run showcase: cd examples/showcase && pnpm install && pnpm dev

🤖 Generated with Claude Code

Sahil5963 and others added 9 commits January 27, 2026 14:41
…mponents

- Add BackButton compound component (auto-connected to context)
- Add ThreadPicker compound wrapper (auto-connected, renders only with persistence)
- Add ChevronLeftIcon to icons
- ChatView now supports Header/Footer children for view-specific layouts
- Memoize context value to prevent unnecessary re-renders
- Add accessibility props (aria-label, disabled override) to BackButton

Usage:
<CopilotChat.ChatView>
  <CopilotChat.Header>
    <CopilotChat.BackButton />
    <CopilotChat.ThreadPicker />
  </CopilotChat.Header>
</CopilotChat.ChatView>

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Compound Components section to chat.mdx with examples for
  Root, HomeView, ChatView, Header, Footer, Input, Suggestions,
  BackButton, and ThreadPicker components
- Document view-specific headers pattern
- Add useCopilotChatContext hook documentation
- Add new semantic CSS classes to customizations.mdx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Expand SDK response formats to include JSON (Non-Streaming) for batch processing and simpler integrations.
- Update documentation with new examples for using `generateText()` and `runtime.chat()` methods.
- Clarify when to use non-streaming responses, including use cases for logging and analytics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allows passing custom headers with each request to the runtime endpoint.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
## New Examples

### Playground (`examples/playground/`)
- Multi-provider testing (OpenAI, Anthropic, Google)
- Theme switcher (light/dark)
- Settings panel for parameters

### Showcase (`examples/showcase/`)
Real-world demo applications:
- Shopping Assistant - E-commerce copilot
- Dashboard Assistant - Admin tools
- Debug Assistant - Developer tools with screenshots
- Content Editor - Rich text with AI suggestions

### Generate Text Route
- `nextjs-demo/app/api/chat/generate-text/` - Low-level generateText() example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
copilot-sdk-docs Ready Ready Preview, Comment Jan 27, 2026 4:54pm

Request Review

@Rohitjoshi9023 Rohitjoshi9023 merged commit dc4644b into main Jan 27, 2026
2 of 3 checks passed
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.

3 participants