You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/agents/index.mdx
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,11 @@ Agents are deployed to Cloudflare's [Workers](/workers/) platform using [Durable
34
34
35
35
## Why build agents on Cloudflare?
36
36
37
-
-*Designed for durable execution:*[Durable Objects](/durable-objects/) and [Workflows](/workflows) are built for a programming model that enables guaranteed execution for async tasks like long-running deep thinking LLM calls, human-in-the-loop, or unreliable API calls.
38
37
-*Non I/O bound pricing:* don't pay for long-running processes when your code is not executing. Cloudflare Workers is designed to scale down and [only charge you for CPU time](https://blog.cloudflare.com/workers-pricing-scale-to-zero/), as opposed to wall-clock time.
38
+
-*Designed for durable execution:*[Durable Objects](/durable-objects/) and [Workflows](/workflows) are built for a programming model that enables guaranteed execution for async tasks like long-running deep thinking LLM calls, human-in-the-loop, or unreliable API calls.
39
39
-*Scalable, and reliable, without compromising on performance:* by running on Cloudflare's network, agents can execute tasks close to the user without introducing latency for real-time experiences.
@@ -282,7 +285,7 @@ Use the [Browser Rendering API](/browser-rendering/) to allow your agents to sea
282
285
npm install @cloudflare/puppeteer --save-dev
283
286
```
284
287
285
-
```ts
288
+
```ts collapse={30,1000}
286
289
importpuppeteerfrom"@cloudflare/puppeteer";
287
290
288
291
interfaceEnv {
@@ -329,7 +332,7 @@ export default {
329
332
330
333
Use [AI Gateway](/ai-gateway/) to cache, log, retry and run [evals](/ai-gateway/evaluations/) (evaluations) for your agents, no matter where they're deployed.
331
334
332
-
```py
335
+
```py collapse={30,1000}
333
336
from anthropic import Anthropic
334
337
335
338
anthropic = Anthropic(
@@ -369,7 +372,7 @@ Give your agents more context and the ability to search across content, reply to
369
372
npm i @langchain/cloudflare hono
370
373
```
371
374
372
-
```ts
375
+
```ts collapse={30,1000}
373
376
import {
374
377
CloudflareVectorizeStore,
375
378
CloudflareWorkersAIEmbeddings
@@ -448,7 +451,7 @@ Ship faster with the [AI SDK](https://sdk.vercel.ai/docs/introduction): make it
0 commit comments