File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 python-version : ${{ matrix.python }}
3535
36+ - name : Setup uv
37+ uses : astral-sh/setup-uv@v5
38+ with :
39+ enable-cache : true
40+
3641 - name : Install Node.js dependencies (root)
3742 run : npm install
3843
4449 - name : Install Python dependencies (agent)
4550 run : |
4651 cd agent
47- pip install -r requirements.txt
52+ uv sync
4853
4954 - name : Build frontend
5055 run : npm run build
Original file line number Diff line number Diff line change 1414 "postinstall" : " npm run install:agent"
1515 },
1616 "dependencies" : {
17+ "@copilotkit/react-core" : " ^1.50.0" ,
1718 "@copilotkit/react-ui" : " 1.50.0" ,
18- "@copilotkit/react-core" : " 1.50.0" ,
1919 "@copilotkit/runtime" : " 1.50.0" ,
2020 "next" : " 16.0.8" ,
2121 "react" : " ^19.2.1" ,
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { useCoAgent , useCopilotAction } from "@copilotkit/react-core" ;
3+ import {
4+ useCoAgent ,
5+ useFrontendTool ,
6+ useRenderToolCall ,
7+ } from "@copilotkit/react-core" ;
48import { CopilotKitCSSProperties , CopilotSidebar } from "@copilotkit/react-ui" ;
59import { useState } from "react" ;
610
711export default function CopilotKitPage ( ) {
812 const [ themeColor , setThemeColor ] = useState ( "#6366f1" ) ;
913
1014 // 🪁 Frontend Actions: https://docs.copilotkit.ai/guides/frontend-actions
11- useCopilotAction ( {
15+ useFrontendTool ( {
1216 name : "setThemeColor" ,
1317 parameters : [
1418 {
@@ -59,7 +63,7 @@ function YourMainContent({ themeColor }: { themeColor: string }) {
5963 } ) ;
6064
6165 // 🪁 Frontend Actions: https://docs.copilotkit.ai/langgraph/frontend-actions
62- useCopilotAction ( {
66+ useFrontendTool ( {
6367 name : "addProverb" ,
6468 parameters : [
6569 {
@@ -77,10 +81,9 @@ function YourMainContent({ themeColor }: { themeColor: string }) {
7781 } ) ;
7882
7983 //🪁 Generative UI: https://docs.copilotkit.ai/langgraph/generative-ui
80- useCopilotAction ( {
84+ useRenderToolCall ( {
8185 name : "get_weather" ,
8286 description : "Get the weather for a given location." ,
83- available : "disabled" ,
8487 parameters : [ { name : "location" , type : "string" , required : true } ] ,
8588 render : ( { args } ) => {
8689 return < WeatherCard location = { args . location } themeColor = { themeColor } /> ;
You can’t perform that action at this time.
0 commit comments