Commit 762b11e
authored
feat: real APIs, Bedrock LLM integration, and Travel Agent Control Panel (#273)
* feat: replace mock tools with real free APIs and add Travel Agent Control Panel
Replace dummy/hardcoded tool implementations in the multi-agent planner
with real free APIs that require no API keys:
- Weather: Open-Meteo API (geocoding + forecast)
- Attractions: Wikipedia API (page summary + search)
- Currency: Frankfurter API (live ECB exchange rates)
- Flights: realistic simulated data (no free API exists)
Add a Travel Agent Control Panel (fault-panel) service that provides a
web UI for toggling fault injection scenarios in real time. The canary
polls the panel each cycle for live config updates. Features:
- One-click presets: All Clean, Default, Chaos, Latency Spike,
Cascading Failure, Deep Traces, Custom
- Read-only bar visualization for presets, editable sliders for Custom
- Each preset shows what to look for in the observability dashboards
- State persists to a JSON file across container restarts
- Master switch to pause/resume canary traffic
The orchestrator now calls 4 tools (weather, attractions, flights,
currency) producing deeper and more varied trace waterfalls ideal for
observability demos.
Signed-off-by: ps48 <pshenoy36@gmail.com>
* feat: add Amazon Bedrock LLM integration with live toggle
Add real LLM support via Amazon Bedrock Converse API (Claude Opus 4.8)
with a live toggle in the Travel Agent Control Panel:
- New bedrock_client.py utility in each agent (tool_use, fallback handling)
- Orchestrator: Bedrock generates trip plan and synthesizes recommendation
- Weather Agent: full agentic tool_use loop (select tool → execute → respond)
- Events Agent: Bedrock reasons about attractions before MCP call
- Graceful fallback to mock mode if no AWS credentials or Bedrock errors
Also:
- Fix fault-panel internal port to 8085 (avoids conflict with OTel demo Envoy)
- Add use_real_llm toggle to control panel state + UI
- Pass AWS credentials + BEDROCK_MODEL_ID through docker-compose env vars
- Add boto3 + requests to all agent Dockerfiles
- Comprehensive README covering real APIs, Bedrock, control panel, faults
Signed-off-by: ps48 <pshenoy36@gmail.com>
* chore: switch default model to Haiku 4.5 with global. prefix
Address review feedback:
- Default to claude-haiku-4-5 (cheapest) instead of opus-4-8
- Use global. prefix for cross-region inference profile
Signed-off-by: ps48 <pshenoy36@gmail.com>
* fix: weather-agent NameError when Bedrock succeeds
The Bedrock success path never assigned llm_response, causing a
NameError at the post-branch logging/metrics code that referenced
llm_response["id"] and llm_response["model"]. Use conditional
variables that work for both Bedrock and mock paths.
Signed-off-by: ps48 <pshenoy36@gmail.com>
---------
Signed-off-by: ps48 <pshenoy36@gmail.com>1 parent 6b9223e commit 762b11e
16 files changed
Lines changed: 1879 additions & 287 deletions
File tree
- docker-compose
- canary
- fault-panel
- examples/plain-agents
- multi-agent-planner
- events-agent
- mcp-server
- orchestrator
- weather-agent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
45 | 70 | | |
46 | 71 | | |
47 | 72 | | |
| |||
52 | 77 | | |
53 | 78 | | |
54 | 79 | | |
| 80 | + | |
55 | 81 | | |
56 | 82 | | |
57 | 83 | | |
58 | 84 | | |
59 | 85 | | |
| 86 | + | |
60 | 87 | | |
61 | 88 | | |
62 | 89 | | |
| |||
79 | 106 | | |
80 | 107 | | |
81 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
82 | 115 | | |
83 | 116 | | |
84 | 117 | | |
| |||
125 | 158 | | |
126 | 159 | | |
127 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
128 | 167 | | |
129 | 168 | | |
130 | 169 | | |
| 170 | + | |
131 | 171 | | |
132 | 172 | | |
133 | 173 | | |
| |||
160 | 200 | | |
161 | 201 | | |
162 | 202 | | |
163 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | | - | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | | - | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
37 | 41 | | |
38 | | - | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
64 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
65 | 96 | | |
66 | 97 | | |
67 | 98 | | |
| |||
76 | 107 | | |
77 | 108 | | |
78 | 109 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
83 | 115 | | |
84 | 116 | | |
85 | 117 | | |
86 | | - | |
| 118 | + | |
87 | 119 | | |
88 | 120 | | |
89 | 121 | | |
90 | 122 | | |
91 | 123 | | |
92 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
93 | 133 | | |
94 | 134 | | |
95 | 135 | | |
| |||
118 | 158 | | |
119 | 159 | | |
120 | 160 | | |
121 | | - | |
| 161 | + | |
| 162 | + | |
122 | 163 | | |
123 | 164 | | |
124 | | - | |
| 165 | + | |
125 | 166 | | |
126 | 167 | | |
127 | 168 | | |
| |||
136 | 177 | | |
137 | 178 | | |
138 | 179 | | |
139 | | - | |
140 | | - | |
| 180 | + | |
| 181 | + | |
141 | 182 | | |
142 | 183 | | |
143 | 184 | | |
| |||
154 | 195 | | |
155 | 196 | | |
156 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
157 | 205 | | |
158 | 206 | | |
159 | | - | |
| 207 | + | |
160 | 208 | | |
161 | 209 | | |
162 | 210 | | |
| |||
167 | 215 | | |
168 | 216 | | |
169 | 217 | | |
170 | | - | |
| 218 | + | |
171 | 219 | | |
172 | 220 | | |
173 | 221 | | |
174 | 222 | | |
175 | 223 | | |
176 | 224 | | |
177 | | - | |
178 | | - | |
| 225 | + | |
179 | 226 | | |
180 | 227 | | |
181 | 228 | | |
182 | 229 | | |
183 | 230 | | |
184 | | - | |
| 231 | + | |
185 | 232 | | |
186 | 233 | | |
187 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments