MCPcopy Index your code
hub / github.com/google/adk-python / update_state_via_event

Function update_state_via_event

contributing/samples/workflows/state/agent.py:26–28  ·  view source on GitHub ↗

Returns an Event that implicitly updates the shared workflow state.

(node_input: str)

Source from the content-addressed store, hash-verified

24
25
26def 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
31def read_state_via_ctx(ctx):

Callers

nothing calls this directly

Calls 1

EventClass · 0.90

Tested by

no test coverage detected