def get(self, key: str, default: Any = None) -> Any:
    """Returns the value of the state dict for the given key."""
    if key not in self:
      return default
    return self[key]
Returns the value of the state dict for the given key.
src/google/adk/sessions/state.py