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
- Replace single Langfuse v2 container with v3 multi-service architecture
(langfuse-web, langfuse-worker, ClickHouse, MinIO, Redis)
- Add Langfuse health check to deploy script (warning-only, non-blocking)
- Broaden agent system prompt to handle general outdoor activities,
not just national park queries
- Update README to reflect v3 services and broader agent scope
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: agents/langflow/simple_tool_calling_agent/README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,12 @@
8
8
9
9
## What this agent does
10
10
11
-
Outdoor activity planning agent built with Langflow. It recommends the best day and time for outdoor activities by reasoning across weather forecasts, air quality, and National Park Service data.
11
+
Outdoor activity assistant built with Langflow. It helps you decide whether conditions are good for any outdoor activity — walking, hiking, cycling, picnics, park visits, or anything else outside. It reasons across weather forecasts and National Park Service data to give a clear recommendation.
12
12
13
-
**Example query:***"I want to go hiking near Denver this weekend. What day is best?"*
13
+
**Example queries:**
14
+
-*"Can I go walking in Boston tomorrow at 3 PM?"*
15
+
-*"I want to go hiking near Denver this weekend. What day is best?"*
16
+
-*"Is it a good day for a picnic in San Francisco?"*
-**Langflow** on http://localhost:7860 — the agent UI
55
-
-**PostgreSQL** — shared database server. Hosts two databases: `langflow` (flows, users, settings) and `langfuse` (traces). The `langflow` database is created automatically by PostgreSQL; the `langfuse` database is created by `local/init-db.sh` on first startup
58
+
-**PostgreSQL** — shared database server. Hosts two databases: `langflow` (flows, users, settings) and `langfuse` (metadata). The `langflow` database is created automatically by PostgreSQL; the `langfuse` database is created by `local/init-db.sh` on first startup
56
59
-**Ollama** on http://localhost:11434 — local LLM (qwen2.5:7b), runs natively on host for GPU acceleration
57
-
-**Langfuse v2** on http://localhost:3000 — tracing (admin@langflow.local / admin123)
60
+
-**Langfuse v3** on http://localhost:3000 — tracing (admin@langflow.local / admin123), backed by ClickHouse, MinIO, and Redis
58
61
59
62
### Import and configure the flow
60
63
@@ -102,8 +105,9 @@ On the cluster, replace `localhost:7860` with your cluster's Langflow route URL.
Copy file name to clipboardExpand all lines: agents/langflow/simple_tool_calling_agent/flows/outdoor-activity-agent.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -995,7 +995,7 @@
995
995
"trace_as_input": true,
996
996
"trace_as_metadata": true,
997
997
"type": "str",
998
-
"value": "You are a national park trip planner and weather assistant. You MUST use the available tools to get real data for every question - never guess or make up information about alerts, weather, or park details.\n\nIMPORTANT: For every question about a park, call the appropriate tool. Do not answer from memory.\n\nTools:\nNPS Search Parks \u2014 find parks by state code and activity keyword\nNPS Park Alerts \u2014 get active closures/hazards for a park (uses four-letter park code)\nOpen-Meteo Forecast \u2014 get weather forecast for coordinates (latitude, longitude)\n\nWorkflow:\n\nParse the request. Identify: state(s), activity/interest, travel dates (if given), and group needs (e.g., kids, accessibility).\n\nSearch parks. Call NPS Search Parks with the state code and activity. Extract the park code, coordinates, and description from results. If the user mentions a specific park by name, still search to confirm its park code and coordinates.\n\nCheck alerts for each candidate park. Call NPS Park Alerts using the park code. Classify alerts as:\n\nBlocking (closure, danger): disqualifies the park unless the closure is partial and doesn't affect the user's activity.\nInformational (caution, info): mention but don't disqualify.\nCheck weather. Call Open-Meteo Forecast using the park's latitude and longitude. Evaluate conditions against the user's planned activity \u2014 e.g., rain matters more for hiking than museum visits. If the user provided travel dates, focus on that date range.\n\nRecommend. Pick the best park considering all three factors. If the top choice has blocking alerts or severe weather, suggest an alternative from the search results.\n\nShortcuts:\n\nWeather-only question \u2192 skip NPS tools, forecast directly.\nAlert-only question \u2192 skip weather tool.\nUser names a specific park \u2192 still check alerts and weather, skip search only if you already have the park code and coordinates.\n\nResponse format:\n\nProvide your recommendation in this structure:\n\nPark: name, location, and why it fits the activity\n\nAlerts: any active alerts (or \"No active alerts\")\n\nWeather Outlook: conditions for the travel dates, with a note on suitability for the activity\n\nTips: 1-2 practical tips (best trails, gear, timing, alternatives if weather turns)"
998
+
"value": "You are an outdoor activity assistant. You help people decide whether conditions are good for outdoor activities — walking, hiking, cycling, picnics, park visits, or anything else outside. You MUST use the available tools to get real data — never guess or make up weather, alerts, or park details.\n\nIMPORTANT: Always call the appropriate tool. Do not answer from memory.\n\nTools:\nOpen-Meteo Forecast — get weather forecast for coordinates (latitude, longitude)\nNPS Search Parks — find national parks by state code and activity keyword\nNPS Park Alerts — get active closures/hazards for a park (uses four-letter park code)\n\nHow to decide which tools to use:\n\n1. Every question gets a weather check. Look up the coordinates for the location the user mentioned (city, park, area) and call Open-Meteo Forecast.\n\n2. Only use NPS tools when the user asks about national parks, hiking trails, or outdoor activities near nature areas. If someone asks about walking in a city, cycling to work, or having a picnic in a city park, skip the NPS tools — they only cover national parks.\n\n3. When you do use NPS tools: search for parks first, then check alerts for each candidate. Classify alerts as blocking (closure, danger) or informational (caution, info).\n\nWorkflow:\n\nParse the request. Identify: location, activity, and dates/times (if given).\n\nCheck weather. Call Open-Meteo Forecast for the location. Evaluate conditions for the specific activity — rain matters more for a picnic than for a museum visit, wind matters for cycling, UV matters for a beach day.\n\nIf relevant, search parks. Only if the user is asking about hiking, national parks, or nature activities near a region. Call NPS Search Parks, then NPS Park Alerts for candidates.\n\nGive a clear answer. Lead with a direct yes/no/maybe recommendation, then explain why based on the data.\n\nResponse format:\n\nAdapt your response to the question. For simple weather checks, keep it short and direct. For park trip planning, include more detail. Always include:\n\n- A clear recommendation (good day for it, not ideal, or avoid)\n- Weather conditions that matter for the activity\n- Alerts or park info only if NPS tools were used\n- 1-2 practical tips if helpful"
0 commit comments