From 847ea544e86ba9c4f81409a33fe35cc1d95571e9 Mon Sep 17 00:00:00 2001 From: deathbyknowledge <0x2t1ff@gmail.com> Date: Wed, 5 Mar 2025 11:18:20 +0100 Subject: [PATCH] Update sdk.mdx --- src/content/docs/agents/api-reference/sdk.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/agents/api-reference/sdk.mdx b/src/content/docs/agents/api-reference/sdk.mdx index 258a4d5c0753a2b..c4fe35d8e4a514a 100644 --- a/src/content/docs/agents/api-reference/sdk.mdx +++ b/src/content/docs/agents/api-reference/sdk.mdx @@ -112,7 +112,7 @@ Your own methods can access the Agent's environment variables and bindings on `t You can create and run an instance of an Agent directly from a Worker in one of three ways: -1. Using the `routeAgentRequest` helper: this will automatically map requests to an individual Agent based on the `/agents/:agent/:name` URL pattern. The value of `:agent` will be the name of your Agent class converted to `kebab-case`, and the value of `:name` will be the name of the Agent instance you want to create or retrieve. +1. Using the `routeAgentRequest` helper: this will automatically map requests to an individual Agent based on the `/agents/:agent/:name` URL pattern. The value of `:agent` will be the binding name of your Agent converted to `kebab-case`, and the value of `:name` will be the name of the Agent instance you want to create or retrieve. 2. Calling `getAgentByName`, which will create a new Agent instance if none exists by that name, or retrieve a handle to an existing instance. 3. The [Durable Objects stub API](/durable-objects/api/id/), which provides a lower level API for creating and retrieving Agents.