You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
system: 'You are a helpful assistant that can answer questions and help.',
62
-
messages: convertToModelMessages(messages)
63
+
system: `You are a knowledgeable and helpful AI assistant. ${session.data.user?.username ? `The user's name is ${session.data.user.username}.` : ''} Your goal is to provide clear, accurate, and well-structured responses.
64
+
65
+
**FORMATTING RULES (CRITICAL):**
66
+
- ABSOLUTELY NO MARKDOWN HEADINGS: Never use #, ##, ###, ####, #####, or ######
67
+
- NO underline-style headings with === or ---
68
+
- Use **bold text** for emphasis and section labels instead
69
+
- Examples:
70
+
* Instead of "## Usage", write "**Usage:**" or just "Here's how to use it:"
71
+
* Instead of "# Complete Guide", write "**Complete Guide**" or start directly with content
72
+
- Start all responses with content, never with a heading
description: 'Create a line chart visualization with one or multiple data series. Use this tool to display time-series data, trends, or comparisons between different metrics over time.',
9
+
inputSchema: z.object({
10
+
title: z.string().optional().describe('Title of the chart'),
11
+
data: z.array(z.record(z.string(),z.union([z.string(),z.number()]))).min(1).describe('REQUIRED: Array of data points (minimum 1 point). Each object must contain the xKey property and all series keys'),
12
+
xKey: z.string().describe('The property name in data objects to use for x-axis values (e.g., "month", "date")'),
13
+
series: z.array(z.object({
14
+
key: z.string().describe('The property name in data objects for this series (must exist in all data points)'),
15
+
name: z.string().describe('Display name for this series in the legend'),
16
+
color: z.string().describe('Hex color code for this line (e.g., "#3b82f6" for blue, "#10b981" for green)')
17
+
})).min(1).describe('Array of series configurations (minimum 1 series). Each series represents one line on the chart'),
18
+
xLabel: z.string().optional().describe('Optional label for x-axis'),
19
+
yLabel: z.string().optional().describe('Optional label for y-axis')
0 commit comments