How do you access state values from your code after running an agent?
この演習はコースの一部です
理論を実践に変える、インタラクティブな演習のひとつをお試しください
Session state is a dictionary where your agent stores data it needs to remember and access programmatically. Unlike conversation history (which only the LLM can read), session state gives you code-level access to exact values.
現在の演習
In Part 1, you learned that session state is a dictionary you can access programmatically. Now you'll learn to inject state values into agent instructions using {var} templating, enabling dynamic agent behavior.
You've learned to use state for programmatic control and data passing. Now you'll master state namespaces—controlling how long state values persist and who can access them.
Reading List