Skip to content

Improve documentation related to managing state #298

@slilichenko

Description

@slilichenko

State is discussed in this section: https://google.github.io/adk-docs/sessions/#core-concepts and in /sessions/state. https://google.github.io/adk-docs/sessions/state/#how-state-is-updated-recommended-methods indicates 3 recommended ways to update the state, but misses a quite important way to do through a context: https://google.github.io/adk-docs/context/#managing-session-state.

It takes some time to realize that when using a Context it's OK to do direct state manipulation, while session.state shouldn't be updated. Perhaps highlighting these distinctions will help avoid confusion.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions