Skip to content

Commit 1d10a27

Browse files
authored
Add example using Claude Agent SDK and AgentFS (#37)
Fixes #36
2 parents 860894c + 73a99ec commit 1d10a27

File tree

14 files changed

+1560
-1
lines changed

14 files changed

+1560
-1
lines changed

.github/workflows/typescript.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ jobs:
7777
run: |
7878
npm ci
7979
npm run build
80+
81+
- name: Test Claude Agent SDK Example
82+
working-directory: examples/claude-agent/research-assistant
83+
run: |
84+
npm ci
85+
npm run build

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,14 @@ await agent.tools.record(
100100
);
101101
```
102102

103-
See the **[examples](examples)** directory for more comprehensive examples.
103+
### Examples
104+
105+
AgentFS includes examples demonstrating integration with popular AI frameworks:
106+
107+
- **[Mastra](examples/mastra/research-assistant)** - Research assistant using the Mastra AI framework
108+
- **[Claude Agent SDK](examples/claude-agent/research-assistant)** - Research assistant using Anthropic's Claude Agent SDK
109+
110+
See the **[examples](examples)** directory for more details.
104111

105112
## 💡 Why AgentFS?
106113

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Anthropic API Key (required)
2+
ANTHROPIC_API_KEY=your-api-key-here
3+
4+
# Optional: Custom AgentFS database path
5+
# AGENTFS_DB=agentfs.db
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
7+
# Environment files
8+
.env
9+
.env.local
10+
11+
# AgentFS database
12+
agentfs.db
13+
agentfs.db-shm
14+
agentfs.db-wal
15+
16+
# IDE
17+
.vscode/
18+
.idea/
19+
*.swp
20+
*.swo
21+
*~
22+
23+
# OS
24+
.DS_Store
25+
Thumbs.db
26+
27+
# Logs
28+
*.log
29+
npm-debug.log*
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Research Assistant (VLDB + SIGMOD)
2+
3+
A minimal research assistant that answers database research questions by finding most relevant papers from the VLDB and SIGMOD conference proceedings.
4+
5+
## Getting Started
6+
7+
Install dependencies:
8+
9+
```console
10+
npm install
11+
```
12+
13+
Ask a research question:
14+
15+
```
16+
npm run ask -- "How do learned indexes compare to B+ trees?"
17+
```

0 commit comments

Comments
 (0)