Skip to content

Commit 52a63fe

Browse files
committed
Adding fetch example
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent 9cb8d84 commit 52a63fe

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ like `filesystem`, which grants filesystem access, or `memory`, to allow the age
2020
| [diag.yaml](diag.yaml) | Log analysis and diagnostics ||| || | | |
2121
| [todo.yaml](todo.yaml) | Task manager example | | || | | | |
2222
| [pythonist.yaml](pythonist.yaml) | Python programming assistant ||| | | | | |
23+
| [fetch_docker.yaml](fetch_docker.yaml) | Web content fetcher and summarizer | | | | | | fetch (builtin) | |
2324
| [alloy.yaml](alloy.yaml) | Learning assistant | | | | | | | |
2425
| [dmr.yaml](dmr.yaml) | Pirate-themed AI assistant | | | | | | | |
2526

examples/fetch_docker.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cagent run
2+
version: "2"
3+
4+
agents:
5+
root:
6+
model: anthropic/claude-3-5-sonnet-latest
7+
description: An agent that fetches and summarizes web content
8+
instruction: |
9+
You are a web content analyzer that fetches web pages and provides concise summaries.
10+
When asked to summarize a website:
11+
1. Use the fetch tool to retrieve the content
12+
2. Analyze the content and extract key information
13+
3. Provide a clear, structured summary
14+
Be concise and focus on the most important information.
15+
toolsets:
16+
- type: fetch

0 commit comments

Comments
 (0)