Skip to content

Commit 6eb0b26

Browse files
chore: remove weather tooling and documentation
1 parent 9694082 commit 6eb0b26

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
139139
The 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

agent/agent.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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
111104
def set_plan(steps: List[str]):
112105
"""
@@ -135,7 +128,6 @@ def complete_plan():
135128
# return "Your tool response here."
136129

137130
backend_tools = [
138-
get_weather,
139131
set_plan,
140132
update_plan_progress,
141133
complete_plan,

0 commit comments

Comments
 (0)