Skip to content

Commit b2f1361

Browse files
authored
Update agents-api.mdx (#27091)
closes #27056
1 parent f15eea6 commit b2f1361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Instances of an Agent are addressed by a unique identifier: that identifier (ID)
5252

5353
Writing an Agent requires you to define a class that extends the `Agent` class from the Agents SDK package. An Agent encapsulates all of the logic for an Agent, including how clients can connect to it, how it stores state, the methods it exposes, and any error handling.
5454

55-
You can also define your own methods on an Agent: it's technically valid to publish an Agent only has your own methods exposed, and create/get Agents directly from a Worker.
55+
You can also define your own methods on an Agent: it's technically valid to publish an Agent that only has your own methods exposed, and create/get Agents directly from a Worker.
5656

5757
Your own methods can access the Agent's environment variables and bindings on `this.env`, state on `this.setState`, and call other methods on the Agent via `this.yourMethodName`.
5858

0 commit comments

Comments
 (0)