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
+33-27Lines changed: 33 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,10 +63,42 @@ Build full-stack AI applications with Vectorize, Cloudflare’s vector database.
63
63
</TabItem>
64
64
<TabItemlabel="Browser Rendering">
65
65
66
+
Use the [Browser Rendering API](/browser-rendering/) to allow your agents to search the web, take screenshots, and directly interact with websites.
67
+
68
+
```ts
69
+
70
+
```
71
+
72
+
66
73
</TabItem>
67
74
<TabItemlabel="AI Gateway">
68
75
76
+
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.
77
+
78
+
```py
79
+
from anthropic import Anthropic
80
+
81
+
anthropic = Anthropic(
82
+
api_key="<your_anthropic_api_key>",
83
+
# Route, cache, fallback and log prompt-response pairs between your app
"content": "Generate a Cloudflare Worker that returns a simple JSON payload based on a query param",
94
+
}]
95
+
)
96
+
97
+
print(message.content)
98
+
```
99
+
69
100
</TabItem>
101
+
</Tabs>
70
102
71
103
## Use your favorite AI framework
72
104
@@ -230,32 +262,6 @@ export default {
230
262
```
231
263
232
264
</TabItem>
233
-
<TabItemlabel="AI Gateway">
234
-
235
-
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.
236
-
237
-
```py
238
-
from anthropic import Anthropic
239
-
240
-
anthropic = Anthropic(
241
-
api_key="<your_anthropic_api_key>",
242
-
# Route, cache, fallback and log prompt-response pairs between your app
0 commit comments