Skip to content

Commit 17cf352

Browse files
elithrarOxyjun
andauthored
Apply suggestions from code review
Co-authored-by: Jun Lee <[email protected]>
1 parent 367e3fe commit 17cf352

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/content/changelog/agents/2025-03-18-npm-i-agents.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ All future updates will be pushed to the new `agents` package, and the older pac
4242
We've added a number of big new features to the Agents SDK over the past few weeks, including:
4343

4444
- You can now set `cors: true` when using `routeAgentRequest` to return permissive default CORS headers to Agent responses.
45-
- The regular client now syncs state on the agent (just like the React version)
45+
- The regular client now syncs state on the agent (just like the React version).
4646
- `useAgentChat` bug fixes for passing headers/credentials, includng properly clearing cache on unmount.
47-
- Experimental `/schedule` module with a prompt/schema for adding scheduling to your app (with evals!)
47+
- Experimental `/schedule` module with a prompt/schema for adding scheduling to your app (with evals!).
4848
- Changed the internal `zod` schema to be compatible with the limitations of Google's Gemini models by removing the discriminated union, allowing you to use Gemini models with the scheduling API.
4949

5050
We've also fixed a number of bugs with state synchronization and the React hooks.

src/content/docs/agents/api-reference/calling-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ app.get('/code-review/:id', async (c) => {
256256

257257
</TypeScriptExample>
258258

259-
This ensures we only create Agents for authenticated users, and allows you to validate Agent names conform to your preferred naming scheme before instances are created.
259+
This ensures we only create Agents for authenticated users, and allows you to validate whether Agent names conform to your preferred naming scheme before instances are created.
260260

261261
### Next steps
262262

src/content/docs/agents/api-reference/http-sse.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar:
88

99
import { MetaInfo, Render, Type, TypeScriptExample, WranglerConfig } from "~/components";
1010

11-
The Agents SDK allows you to handle HTTP requests and has native support for [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) (SSE). This allows you build applications that can push data to clients, avoid buffering
11+
The Agents SDK allows you to handle HTTP requests and has native support for [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) (SSE). This allows you build applications that can push data to clients and avoid buffering.
1212

1313
### Handling HTTP requests
1414

@@ -108,7 +108,7 @@ If you're unsure of which is better for your use-case, we recommend WebSockets.
108108

109109
### Next steps
110110

111-
* Review the [API documentation](/agents/api-reference/agents-api/) for the Agents class to learn how to define
111+
* Review the [API documentation](/agents/api-reference/agents-api/) for the Agents class to learn how to define them.
112112
* [Build a chat Agent](/agents/getting-started/build-a-chat-agent/) using the Agents SDK and deploy it to Workers.
113113
* Learn more [using WebSockets](/agents/api-reference/websockets/) to build interactive Agents and stream data back from your Agent.
114114
* [Orchestrate asynchronous workflows](/agents/api-reference/run-workflows) from your Agent by combining the Agents SDK and [Workflows](/workflows).

src/content/docs/agents/api-reference/store-and-sync-state.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ This works because each instance of an Agent has its _own_ database, the state s
284284

285285
### Next steps
286286

287-
* Review the [API documentation](/agents/api-reference/agents-api/) for the Agents class to learn how to define
287+
* Review the [API documentation](/agents/api-reference/agents-api/) for the Agents class to learn how to define them.
288288
* [Build a chat Agent](/agents/getting-started/build-a-chat-agent/) using the Agents SDK and deploy it to Workers.
289289
* Learn more [using WebSockets](/agents/api-reference/websockets/) to build interactive Agents and stream data back from your Agent.
290290
* [Orchestrate asynchronous workflows](/agents/api-reference/run-workflows) from your Agent by combining the Agents SDK and [Workflows](/workflows).

src/content/docs/agents/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The Agents SDK enables you to build and deploy AI-powered agents that can autono
2828

2929
### Ship your first Agent
3030

31-
To use the agent starter template and create your first Agent with the Agents SDK:
31+
To use the Agent starter template and create your first Agent with the Agents SDK:
3232

3333
```sh
3434
# install it

0 commit comments

Comments
 (0)