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

Method update

src/google/adk/sessions/state.py:122–128  ·  view source on GitHub ↗

Updates the state dict with the given delta.

(self, delta: dict[str, Any])

Source from the content-addressed store, hash-verified

120 return self[key]
121
122 def update(self, delta: dict[str, Any]) -> None:
123 """Updates the state dict with the given delta."""
124 if self._schema is not None and isinstance(self._schema, type):
125 for key, value in delta.items():
126 _validate_state_entry(self._schema, key, value)
127 self._value.update(delta)
128 self._delta.update(delta)
129
130 def to_dict(self) -> dict[str, Any]:
131 """Returns the state dict."""

Callers 15

utils.pyFile · 0.45
utils.pyFile · 0.45
spotify_search_trackFunction · 0.45
spotify_get_playlistsFunction · 0.45
_collect_toolsetMethod · 0.45
run_asyncMethod · 0.45
_remove_any_ofFunction · 0.45

Calls 2

_validate_state_entryFunction · 0.85
itemsMethod · 0.45

Tested by 1