|
1552 | 1552 | "content": "Agent context is a typed payload published from the frontend on every turn through the useAgentContext hook. The payload is forwarded into the agent's runtime context (LangGraph 0.6 introduced the `context` channel as the supported relay for per-run frontend-supplied data; legacy `properties` flowed via `forwardedProps` and did not land in `RunnableConfig`). On the Python side, CopilotKitMiddleware reads the value off the runtime context, then routes it into the system-prompt builder so the model sees the user's tone, expertise, and length preferences before each call. The result is per-turn behavior change without a model swap." |
1553 | 1553 | } |
1554 | 1554 | }, |
| 1555 | + { |
| 1556 | + "match": { |
| 1557 | + "userMessage": "Make the background a sunset gradient", |
| 1558 | + "toolCallId": "call_d5_change_background_sunset" |
| 1559 | + }, |
| 1560 | + "response": { |
| 1561 | + "content": "Done — sunset gradient is live." |
| 1562 | + } |
| 1563 | + }, |
1555 | 1564 | { |
1556 | 1565 | "match": { |
1557 | 1566 | "userMessage": "Make the background a sunset gradient" |
|
1560 | 1569 | "content": "Sunset gradient applied — warm orange-to-rose blend.", |
1561 | 1570 | "toolCalls": [ |
1562 | 1571 | { |
| 1572 | + "id": "call_d5_change_background_sunset", |
1563 | 1573 | "name": "change_background", |
1564 | 1574 | "arguments": { |
1565 | 1575 | "background": "linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #ff6b6b 100%)" |
|
1568 | 1578 | ] |
1569 | 1579 | } |
1570 | 1580 | }, |
| 1581 | + { |
| 1582 | + "match": { |
| 1583 | + "userMessage": "deep green forest gradient", |
| 1584 | + "toolCallId": "call_d5_change_background_forest" |
| 1585 | + }, |
| 1586 | + "response": { |
| 1587 | + "content": "Done — forest gradient is live." |
| 1588 | + } |
| 1589 | + }, |
1571 | 1590 | { |
1572 | 1591 | "match": { |
1573 | 1592 | "userMessage": "deep green forest gradient" |
|
1576 | 1595 | "content": "Forest gradient applied — deep green hues.", |
1577 | 1596 | "toolCalls": [ |
1578 | 1597 | { |
| 1598 | + "id": "call_d5_change_background_forest", |
1579 | 1599 | "name": "change_background", |
1580 | 1600 | "arguments": { |
1581 | 1601 | "background": "linear-gradient(135deg, #0a3d2e 0%, #166534 50%, #059669 100%)" |
|
1584 | 1604 | ] |
1585 | 1605 | } |
1586 | 1606 | }, |
| 1607 | + { |
| 1608 | + "match": { |
| 1609 | + "userMessage": "navy → magenta cosmic gradient", |
| 1610 | + "toolCallId": "call_d5_change_background_cosmic" |
| 1611 | + }, |
| 1612 | + "response": { |
| 1613 | + "content": "Done — cosmic gradient is live." |
| 1614 | + } |
| 1615 | + }, |
1587 | 1616 | { |
1588 | 1617 | "match": { |
1589 | 1618 | "userMessage": "navy → magenta cosmic gradient" |
|
1592 | 1621 | "content": "Cosmic gradient applied — navy fading to magenta.", |
1593 | 1622 | "toolCalls": [ |
1594 | 1623 | { |
| 1624 | + "id": "call_d5_change_background_cosmic", |
1595 | 1625 | "name": "change_background", |
1596 | 1626 | "arguments": { |
1597 | 1627 | "background": "linear-gradient(135deg, #1e3a8a 0%, #6b21a8 50%, #9333ea 100%)" |
|
1799 | 1829 | "title": "Sales by region", |
1800 | 1830 | "description": "Q4 — share of total revenue", |
1801 | 1831 | "data": [ |
1802 | | - { "label": "North America", "value": 540 }, |
1803 | | - { "label": "EMEA", "value": 320 }, |
1804 | | - { "label": "APAC", "value": 210 }, |
1805 | | - { "label": "LATAM", "value": 90 } |
| 1832 | + { |
| 1833 | + "label": "North America", |
| 1834 | + "value": 540 |
| 1835 | + }, |
| 1836 | + { |
| 1837 | + "label": "EMEA", |
| 1838 | + "value": 320 |
| 1839 | + }, |
| 1840 | + { |
| 1841 | + "label": "APAC", |
| 1842 | + "value": 210 |
| 1843 | + }, |
| 1844 | + { |
| 1845 | + "label": "LATAM", |
| 1846 | + "value": 90 |
| 1847 | + } |
1806 | 1848 | ] |
1807 | 1849 | } |
1808 | 1850 | } |
|
1834 | 1876 | "title": "Quarterly revenue", |
1835 | 1877 | "description": "FY24 — USD thousands", |
1836 | 1878 | "data": [ |
1837 | | - { "label": "Q1", "value": 820 }, |
1838 | | - { "label": "Q2", "value": 940 }, |
1839 | | - { "label": "Q3", "value": 1080 }, |
1840 | | - { "label": "Q4", "value": 1240 } |
| 1879 | + { |
| 1880 | + "label": "Q1", |
| 1881 | + "value": 820 |
| 1882 | + }, |
| 1883 | + { |
| 1884 | + "label": "Q2", |
| 1885 | + "value": 940 |
| 1886 | + }, |
| 1887 | + { |
| 1888 | + "label": "Q3", |
| 1889 | + "value": 1080 |
| 1890 | + }, |
| 1891 | + { |
| 1892 | + "label": "Q4", |
| 1893 | + "value": 1240 |
| 1894 | + } |
1841 | 1895 | ] |
1842 | 1896 | } |
1843 | 1897 | } |
|
1874 | 1928 | { |
1875 | 1929 | "id": "status-api", |
1876 | 1930 | "type": "StatusBadge", |
1877 | | - "props": { "text": "API: healthy", "variant": "success" } |
| 1931 | + "props": { |
| 1932 | + "text": "API: healthy", |
| 1933 | + "variant": "success" |
| 1934 | + } |
1878 | 1935 | }, |
1879 | 1936 | { |
1880 | 1937 | "id": "status-db", |
1881 | 1938 | "type": "StatusBadge", |
1882 | | - "props": { "text": "Database: healthy", "variant": "success" } |
| 1939 | + "props": { |
| 1940 | + "text": "Database: healthy", |
| 1941 | + "variant": "success" |
| 1942 | + } |
1883 | 1943 | }, |
1884 | 1944 | { |
1885 | 1945 | "id": "status-workers", |
1886 | 1946 | "type": "StatusBadge", |
1887 | | - "props": { "text": "Workers: degraded", "variant": "warning" } |
| 1947 | + "props": { |
| 1948 | + "text": "Workers: degraded", |
| 1949 | + "variant": "warning" |
| 1950 | + } |
1888 | 1951 | } |
1889 | 1952 | ], |
1890 | 1953 | "data": {} |
|
0 commit comments