Skip to content

Commit 51bc9a0

Browse files
authored
Update src/content/docs/agents/examples/manage-and-sync-state.mdx
1 parent ba4b710 commit 51bc9a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/docs/agents/examples/manage-and-sync-state.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,6 @@ export class ReasoningAgent extends Agent<Env> {
246246
```
247247

248248
</TypeScriptExample>
249+
250+
This works because each instance of an Agent has its _own_ database, the state stored in that database is private to that Agent: whether it's acting on behalf of a single user, a room or channel, or a deep research tool. You don't have to manage contention or reach out over the network to a centralized database to retrieve and store state by default.
251+

0 commit comments

Comments
 (0)