Skip to content

Commit 044952a

Browse files
elithrarOxyjun
andauthored
Apply suggestions from code review
Co-authored-by: Jun Lee <[email protected]>
1 parent 688280b commit 044952a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Every Agent has built-in state management capabilities, including built-in stora
1414
* Immediately consistent within the Agent: read your own writes.
1515
* Thread-safe for concurrent updates
1616

17-
Agent state is stored in SQL database that embedded within each individual Agent instance: you can interact with it using the higher-level `this.setState` API (recommended) or by directly querying the database with `this.sql`.
17+
Agent state is stored in a SQL database that is embedded within each individual Agent instance: you can interact with it using the higher-level `this.setState` API (recommended) or by directly querying the database with `this.sql`.
1818

1919
#### State API
2020

@@ -247,5 +247,5 @@ export class ReasoningAgent extends Agent<Env> {
247247

248248
</TypeScriptExample>
249249

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.
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. By default, you don't have to manage contention or reach out over the network to a centralized database to retrieve and store state.
251251

0 commit comments

Comments
 (0)