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

Method get

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

Returns the value of the state dict for the given key.

(self, key: str, default: Any = None)

Source from the content-addressed store, hash-verified

114 return bool(self._delta)
115
116 def get(self, key: str, default: Any = None) -> Any:
117 """Returns the value of the state dict for the given key."""
118 if key not in self:
119 return default
120 return self[key]
121
122 def update(self, delta: dict[str, Any]) -> None:
123 """Updates the state dict with the given delta."""

Callers 15

search_wikipediaFunction · 0.45
get_weatherFunction · 0.45
get_currency_rateFunction · 0.45
get_populationFunction · 0.45
get_label_idFunction · 0.45
mainFunction · 0.45
search_gemini_api_docsFunction · 0.45
get_requestFunction · 0.45

Calls

no outgoing calls

Tested by 5

token_endpointFunction · 0.36
get_weatherFunction · 0.36
_extract_from_eventFunction · 0.36
test_default_flowFunction · 0.36
test_pdf_summarizationFunction · 0.36