Returns an Event that implicitly updates the shared workflow state.
(node_input: str)
| 24 | |
| 25 | |
| 26 | def update_state_via_event(node_input: str): |
| 27 | """Returns an Event that implicitly updates the shared workflow state.""" |
| 28 | yield Event(state={"uppercased_text": node_input.upper()}) |
| 29 | |
| 30 | |
| 31 | def read_state_via_ctx(ctx): |