-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: codu-code/agent-workshop
base: main
head repository: codu-code/agent-workshop
compare: workshop/chapter-05-complete
- 10 commits
- 8 files changed
- 2 contributors
Commits on Nov 25, 2025
-
Chapter 0: Basic chat starting point (tool-free)
- Remove all AI tools (weather, create/update document, suggestions) - Remove all agent definitions (tutor, quiz master, planner, analyst) - Remove custom artifacts (flashcard, study-plan) - Simplify prompts to basic chat without tool routing - Keep UI components with placeholder types for rendering - Exclude tempfiles from TypeScript compilation
Configuration menu - View commit details
-
Copy full SHA for dcdd374 - Browse repository at this point
Copy the full SHA dcdd374View commit details -
Chapter 1: Add weather tool (first tool)
- Add lib/ai/tools/get-weather.ts with geocoding support - Update route.ts to import and use weather tool - Add stepCountIs for multi-step tool conversations - Add experimental_activeTools for reasoning model compatibility - Update types.ts to use InferUITool for weather tool
Configuration menu - View commit details
-
Copy full SHA for f990ce0 - Browse repository at this point
Copy the full SHA f990ce0View commit details -
Chapter 2: Add tutor agent (first agent)
- Add lib/ai/agents/ directory with types and index - Add tutor agent that explains concepts with examples - Update route.ts to import and register tutor agent - Update types.ts with tutor tool type inference
Configuration menu - View commit details
-
Copy full SHA for 6b85452 - Browse repository at this point
Copy the full SHA 6b85452View commit details -
Chapter 3: Add all agents (multi-agent orchestration)
- Add analyst, planner, quiz-master agents - Update route.ts to register all agents - Add placeholder artifact UI components for flashcard and study-plan - Update types with flashcardDelta and studyPlanDelta data types - Update Document.kind to include flashcard and study-plan
Configuration menu - View commit details
-
Copy full SHA for 2dac250 - Browse repository at this point
Copy the full SHA 2dac250View commit details -
Chapter 4: Full custom artifact implementations
Replace placeholder flashcard and study-plan artifacts with complete interactive implementations: Flashcard artifact: - FlashcardViewer with quiz navigation and score tracking - Answer selection with correct/incorrect feedback - Explanation display after each answer - Server handler with Zod schema validation Study Plan artifact: - StudyPlanViewer with expandable week sections - Task completion toggle with persistence - Progress bar with percentage calculation - Server handler for plan generation and updates Both artifacts now have: - Full onStreamPart handlers for real-time streaming - Actions (copy to clipboard) - Toolbar buttons for modifications
Configuration menu - View commit details
-
Copy full SHA for 5dcefb1 - Browse repository at this point
Copy the full SHA 5dcefb1View commit details
Commits on Nov 26, 2025
-
Chapter 5: Complete solution with all features
Brings the workshop to final state with all production features: - Document tools (createDocument, updateDocument, requestSuggestions) - Enhanced tool prompts for document creation - UI polish (✓/✗ symbols in flashcard feedback) - Fixed tool output display in messages - Complete type definitions for all tools This represents the final, production-ready chatbot with: - Multi-modal input (text, images, files) - Weather tool demonstration - Study buddy agents (tutor, quiz-master, planner, analyst) - Custom artifacts (flashcard, study-plan) - Document creation and versioning
Configuration menu - View commit details
-
Copy full SHA for 6e3f24f - Browse repository at this point
Copy the full SHA 6e3f24fView commit details -
docs: update CHAPTER-1.md to match full weather implementation
- Show full geocodeCity implementation - Update route.ts example with stepCountIs, experimental_activeTools - Fix Weather component props to match API response - Update flow diagram to show city name lookup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 1f87f92 - Browse repository at this point
Copy the full SHA 1f87f92View commit details -
docs: fix all chapter documentation to match actual code
- CHAPTER-0: Updated to show createUIMessageStream pattern, full useChat config with transport, correct systemPrompt signature - CHAPTER-2: Fixed agent types (UIMessageStreamWriter), gateway.languageModel pattern, tutor params (depth/context), route handler structure - CHAPTER-3: Rewrote quiz-master and planner to show artifact creation with dataStream.write(), correct models (artifact-model), DB save, error handling - CHAPTER-4: Fixed CustomUIDataTypes, added focusAreas param, artifact-model - CHAPTER-5: Added analyst.ts to file structure, fixed inputSchema usage, updated architecture diagrams, added analyst to orchestrator tools All code snippets are now copy-paste ready and match the actual implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 2e0996a - Browse repository at this point
Copy the full SHA 2e0996aView commit details -
docs: fix CHAPTER-1 to show correct systemPrompt and route patterns
- Updated system prompt section to show updating regularPrompt constant - Updated route handler to show correct systemPrompt({ selectedChatModel, requestHints }) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>Configuration menu - View commit details
-
Copy full SHA for d1708a9 - Browse repository at this point
Copy the full SHA d1708a9View commit details -
Fix custom artifact cards not appearing after page refresh
Add handlers for tool-quizMaster and tool-planner in message.tsx so custom artifact cards render in the chat thread after page refresh. Also add preview content for flashcard and study-plan kinds in DocumentContent. The bug was that agent tools were not being rendered - only the built-in createDocument/updateDocument tools had rendering code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for ad0b1a7 - Browse repository at this point
Copy the full SHA ad0b1a7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...workshop/chapter-05-complete