Returns the credential stored for this scheme and credential pair, or
undefined when there is none.
OptionalauthScheme: AuthSchemeOptionalauthCredential: AuthCredentialError if the state entry under the key is not an AuthCredential, which means something else wrote to the key.
Returns the state key that holds the credential exchanged for this scheme and credential pair.
Both operands are hashed into the key, so two tools configured with different schemes, or with different credentials under one scheme, never share a slot.
The key deliberately carries no temp: prefix. Session state is a copy and
only the delta is persisted, and temp: is cleared at the end of a run,
while an exchanged token has to stay readable across runs.
OptionalauthScheme: AuthSchemeOptionalauthCredential: AuthCredentialMakes the credential under key unreadable again.
adk-python deletes the state entry. State has no delete, so this writes
undefined, which State.get returns for a missing key as well, and
getCredential therefore misses exactly as a delete would make it.
Stores and retrieves exchanged credentials in the session state carried by a Context.