Run all debug examples.
()
| 218 | |
| 219 | |
| 220 | async def main(): |
| 221 | """Run all debug examples.""" |
| 222 | print("ADK run_debug() Helper Method Examples") |
| 223 | print("=======================================") |
| 224 | print("Demonstrating all capabilities:\n") |
| 225 | print("1. Minimal usage (2 lines)") |
| 226 | print("2. Multiple messages") |
| 227 | print("3. Session persistence") |
| 228 | print("4. Separate sessions") |
| 229 | print("5. Tool calls") |
| 230 | print("6. Event capture") |
| 231 | print("7. Advanced configuration") |
| 232 | print("8. Before/after comparison") |
| 233 | |
| 234 | await example_minimal() |
| 235 | await example_multiple_messages() |
| 236 | await example_conversation_persistence() |
| 237 | await example_separate_sessions() |
| 238 | await example_with_tools() |
| 239 | await example_capture_events() |
| 240 | await example_with_run_config() |
| 241 | await example_comparison() |
| 242 | |
| 243 | print("\n=======================================") |
| 244 | print("All examples completed.") |
| 245 | print("\nHow different part types appear:") |
| 246 | print(" Text: agent > Hello world (always shown)") |
| 247 | print("\nWith verbose=True only:") |
| 248 | print( |
| 249 | " Tool call: agent > [Calling tool: get_stock_price({'ticker':" |
| 250 | " 'GOOGL'})]" |
| 251 | ) |
| 252 | print(" Tool result: agent > [Tool result: Price for GOOGL: 175.50 USD]") |
| 253 | print("\nNote: When models have code execution enabled (verbose=True):") |
| 254 | print(" Code exec: agent > [Executing python code...]") |
| 255 | print(" Code output: agent > [Code output: Result: 42]") |
| 256 | print(" Inline data: agent > [Inline data: image/png]") |
| 257 | print(" File ref: agent > [File: gs://bucket/file.pdf]") |
| 258 | |
| 259 | |
| 260 | if __name__ == "__main__": |
no test coverage detected