Skip to content

Commit d9bdb21

Browse files
committed
ok
1 parent 77c4e1a commit d9bdb21

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ 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-
- Te 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.
4747
- 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.

src/content/docs/agents/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ And then define your first Agent by creating a class that extends the `Agent` cl
5252
```ts
5353
import { Agent, AgentNamespace } from 'agents';
5454

55-
export class MyAgent extends Agent<Env, State = unknown> {
55+
export class MyAgent extends Agent {
5656
// Define methods on the Agent:
5757
// https://developers.cloudflare.com/agents/api-reference/agents-api/
58+
//
5859
// Every Agent has built in state via this.setState and this.sql
5960
// Built-in scheduling via this.schedule
6061
// Agents support WebSockets, HTTP requests, state synchronization and

0 commit comments

Comments
 (0)