Displays the weather result.
(node_input: dict)
| 67 | |
| 68 | |
| 69 | def summarize(node_input: dict): |
| 70 | """Displays the weather result.""" |
| 71 | yield Event( |
| 72 | message=( |
| 73 | f"Weather for {node_input['city']}:" |
| 74 | f" {node_input['temperature']}, {node_input['condition']}." |
| 75 | f" (Authenticated with key: {node_input['api_key_used']})" |
| 76 | ) |
| 77 | ) |
| 78 | |
| 79 | |
| 80 | root_agent = Workflow( |