View the PDF before continuing.
本练习是课程的一部分
通过我们的互动练习之一,将理论转化为实践
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
当前练习