File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ The main UI component is in [`src/app/page.tsx`](https://github.com/CopilotKit/c
138138### Backend (LangGraph Agent)
139139The agent logic is in [ ` agent/agent.py ` ] ( https://github.com/CopilotKit/canvas-with-langgraph-python/blob/main/agent/agent.py ) . It features:
140140- ** State Management** : Extends ` CopilotKitState ` with canvas-specific fields
141- - ** Tool Integration** : Backend tools for weather, planning, and frontend tools for canvas operations
141+ - ** Tool Integration** : Backend tools for planning, and frontend tools for canvas operations
142142- ** Strict Grounding** : Enforces data consistency by always using shared state as truth
143143- ** Loop Control** : Prevents infinite loops and redundant operations
144144- ** Planning System** : Can create and execute multi-step plans with status tracking
Original file line number Diff line number Diff line change @@ -100,13 +100,6 @@ def summarize_items_for_prompt(state: AgentState) -> str:
100100 return "(unable to summarize items)"
101101
102102
103- @tool
104- def get_weather (location : str ):
105- """
106- Get the weather for a given location.
107- """
108- return f"The weather for { location } is 70 degrees."
109-
110103@tool
111104def set_plan (steps : List [str ]):
112105 """
@@ -135,7 +128,6 @@ def complete_plan():
135128# return "Your tool response here."
136129
137130backend_tools = [
138- get_weather ,
139131 set_plan ,
140132 update_plan_progress ,
141133 complete_plan ,
You can’t perform that action at this time.
0 commit comments