fix: update AI SDK message serialization to follow best practices
- Use ModelMessage type instead of any[] for type safety - Format assistant messages with tool calls using ToolCallPart in content array - Format tool messages with ToolResultPart using proper output structure - Add ToolCallCard component for sexy debug display of tool calls in chat - Remove debug console.log statements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
fbcd7150c9
commit
aba7c976c1
3 changed files with 280 additions and 49 deletions
|
|
@ -32,6 +32,10 @@ export const icons = {
|
|||
viewBox: '0 0 24 24',
|
||||
path: 'M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z',
|
||||
},
|
||||
clock: {
|
||||
viewBox: '0 0 24 24',
|
||||
path: 'M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z',
|
||||
},
|
||||
link: {
|
||||
viewBox: '0 0 24 24',
|
||||
path: 'M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue