-
Notifications
You must be signed in to change notification settings - Fork 10.4k
WIP /agents structure #19510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
WIP /agents structure #19510
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
929dd7c
WIP /agents structure
irvinebroque b8aed32
consolidate why cf with overview
rita3ko 387c23f
add reference architectures and why cf
rita3ko 1713f92
add examples WIP
elithrar becf9c4
fix tabs closing tags
elithrar c3e8f00
browser rendering example
elithrar cb2b877
add workflows example
elithrar 796963d
update DO summary
elithrar eddf113
add examples
elithrar fbb2b22
collapse code blocks
elithrar 1afb5b3
update agents.yaml
elithrar 24a629d
clean up main page
rita3ko 9578034
add agents links
elithrar 5fee071
fix up link outs
rita3ko 7c46eb1
fix collapse syntax
elithrar cc4a047
fix link
elithrar 8cb5149
add products sidebar
elithrar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/content/docs/agents/capabilities/control-web-browsers.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| type: concept | ||
| title: Control Web Browsers | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 1 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Control web browsers |
22 changes: 22 additions & 0 deletions
22
src/content/docs/agents/capabilities/human-in-the-loop.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| type: concept | ||
| title: Human in the loop | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 7 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Human in the loop | ||
|
|
||
| Show persisting state and waiting for human input before moving forward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| pcx_content_type: reference | ||
| title: Capabilities | ||
| sidebar: | ||
| order: 3 | ||
| group: | ||
| hideIndex: true | ||
| --- | ||
|
|
||
| import { DirectoryListing } from "~/components"; | ||
|
|
||
| Capabilities | ||
|
|
||
| <DirectoryListing /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| type: concept | ||
| title: Multiplayer | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 9 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Show multiplayer chat | ||
|
|
||
| https://x.com/threepointone/status/1883863974367866988 | ||
|
|
||
| Little connecting dots to agents (multiple people can chat with same agent, shared chat with agent) |
20 changes: 20 additions & 0 deletions
20
src/content/docs/agents/capabilities/persistent-memory.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| type: concept | ||
| title: Persistent memory | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 6 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Remember what you said last time, remember previous actions, etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| type: concept | ||
| title: Receive Email | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 2 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Receive email | ||
|
|
||
| https://developers.cloudflare.com/email-routing/email-workers/ | ||
|
|
||
| and then reply | ||
|
|
||
| https://developers.cloudflare.com/email-routing/email-workers/reply-email-workers/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| type: concept | ||
| title: Receive Webhooks | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 5 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Receive Webhooks |
20 changes: 20 additions & 0 deletions
20
src/content/docs/agents/capabilities/retreival-augmented-generation-rag.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| type: concept | ||
| title: Retreival Augmented Generation (RAG) | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 5 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Link to https://developers.cloudflare.com/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| type: concept | ||
| title: Send Email | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 3 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Send email | ||
|
|
||
| https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| type: concept | ||
| title: Alarms | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 8 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Explain DO Alarms in context of agents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| pcx_content_type: reference | ||
| title: Example Agents | ||
| sidebar: | ||
| order: 3 | ||
| group: | ||
| hideIndex: true | ||
| --- | ||
|
|
||
| import { DirectoryListing } from "~/components"; | ||
|
|
||
| Example Agents | ||
|
|
||
| <DirectoryListing /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| title: Get started | ||
| pcx_content_type: get-started | ||
| sidebar: | ||
| order: 2 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Show step-by-step of getting to hello world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| --- | ||
| title: Build agents on Cloudflare | ||
| type: overview | ||
| pcx_content_type: overview | ||
| sidebar: | ||
| order: 1 | ||
| head: | ||
| - tag: title | ||
| content: Agents | ||
| --- | ||
|
|
||
| import { | ||
| CardGrid, | ||
| Description, | ||
| Feature, | ||
| LinkButton, | ||
| LinkTitleCard, | ||
| Plan, | ||
| RelatedProduct, | ||
| Render, | ||
| } from "~/components"; | ||
|
|
||
| <Plan type="all" /> | ||
|
|
||
| Build AI-powered agents that can autonomously perform tasks, remember state, control web browsers, and communicate over email. | ||
|
|
||
| Agents are deployed to Cloudflare's [Workers](/workers/) platform using [Durable Objects](/durable-objects/), [Browser Rendering](/browser-rendering/), [Email Routing](/email-routing/) and [more](/products/?product-group=Developer+platform). | ||
|
|
||
| <LinkButton variant="primary" href="/agents/get-started/"> | ||
| Get started | ||
| </LinkButton> | ||
|
|
||
| ## Why build agents on Cloudflare? | ||
| - | ||
|
|
||
| ## Products | ||
|
|
||
| <RelatedProduct header="AI Gateway" href="/ai-gateway/" product="ai-gateway"> | ||
|
|
||
| Observe and control your AI applications with caching, rate limiting, request retries, model fallback, and more. | ||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="Vectorize" href="/vectorize/" product="vectorize"> | ||
|
|
||
| Build full-stack AI applications with Vectorize, Cloudflare’s vector database. Adding Vectorize enables you to perform tasks such as semantic search, recommendations, anomaly detection or can be used to provide context and memory to an LLM. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="Workers" href="/workers/" product="workers"> | ||
|
|
||
| Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="Pages" href="/pages/" product="pages"> | ||
|
|
||
| Create full-stack applications that are instantly deployed to the Cloudflare global network. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="R2" href="/r2/" product="r2"> | ||
|
|
||
| Store large amounts of unstructured data without the costly egress bandwidth fees associated with typical cloud storage services. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="D1" href="/d1/" product="d1"> | ||
|
|
||
| Create new serverless SQL databases to query from your Workers and Pages projects. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="Durable Objects" href="/durable-objects/" product="durable-objects"> | ||
|
|
||
| A globally distributed coordination API with strongly consistent storage. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| <RelatedProduct header="KV" href="/kv/" product="kv"> | ||
|
|
||
| Create a global, low-latency, key-value data storage. | ||
|
|
||
|
|
||
| </RelatedProduct> | ||
|
|
||
| *** | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| title: AI Models | ||
| pcx_content_type: get-started | ||
| sidebar: | ||
| order: 5 | ||
| --- | ||
|
|
||
| import { | ||
| Render, | ||
| PackageManagers, | ||
| Steps, | ||
| FileTree, | ||
| Details, | ||
| Tabs, | ||
| TabItem, | ||
| WranglerConfig, | ||
| } from "~/components"; | ||
|
|
||
| Use any model from anywhere — whether its on Workers AI or a model outside of Cloudflare. | ||
|
|
||
| Link to Workers AI model catalog |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.