Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

docs: fix glossary reset example (#3818)

Colton Padden166dedc75503
diff --git a/docs/tutorial/remember-definitions.mdx b/docs/tutorial/remember-definitions.mdx
index 9f93b258f..5d1fe6157 100644
--- a/docs/tutorial/remember-definitions.mdx
+++ b/docs/tutorial/remember-definitions.mdx
@@ -65,7 +65,7 @@ export default defineTool({
The sample data has two high-value customers: Acme ($57) and Globex ($99). This definition works with the same fixed dataset whenever you run the tutorial. The second turn is a separate turn in the same session, yet the definition is still there. State checkpoints at step boundaries, so it's the same durability from [Step 2](./how-it-runs), now applied to your own data.
-State is scoped to a session and isolated per agent, so a subagent starts with fresh state and never sees the parent's. Need to reset something each turn? Call `update(() => fresh)` in a lifecycle hook. More in [State](../concepts/state).
+State is scoped to a session and isolated per agent, so a subagent starts with fresh state and never sees the parent's. Need to clear the glossary each turn? Call `glossary.update(() => ({ terms: {} }))` in a lifecycle hook. More in [State](../concepts/state).
→ Next: [Team playbooks](./team-playbooks)