Skip to content

Commit 62d0ca4

Browse files
jwesleyeclaude
andcommitted
feat: add file operation tools to Simple Sally agent
Added strands-agents-tools dependency and integrated file_read, file_write, and editor tools to enable file operations in the Simple Sally test agent. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent db7d6f2 commit 62d0ca4

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

tests/simple_sally_sample_agent/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from strands import Agent
1212
from strands.models.anthropic import AnthropicModel
13+
from strands_tools import file_read, file_write, editor
1314

1415
# Load .env file
1516
try:
@@ -55,7 +56,7 @@ def create_agent() -> Agent:
5556
description="A friendly minimal agent",
5657
model=model,
5758
system_prompt=SYSTEM_PROMPT,
58-
tools=[],
59+
tools=[file_read, file_write, editor],
5960
)
6061

6162

tests/simple_sally_sample_agent/prompts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
- Keep responses concise but personable
1414
1515
## Your Capabilities
16-
You have access to basic tools that allow you to:
17-
- Greet users with personalized messages
16+
You have access to file operation tools that allow you to:
17+
- Read files using the file_read tool
18+
- Write and create files using the file_write tool
19+
- Perform advanced file editing with the editor tool (view, edit, pattern replacement)
1820
- Provide helpful information
1921
- Maintain friendly conversation
2022

tests/simple_sally_sample_agent/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727

2828
dependencies = [
2929
"strands-agents",
30+
"strands-agents-tools",
3031
"python-dotenv",
3132
"boto3",
3233
"bedrock-agentcore",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Simple Sally Agent Dependencies
22
strands-agents
3+
strands-agents-tools
34
python-dotenv
45
boto3
56
bedrock-agentcore

0 commit comments

Comments
 (0)