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: README.md
+41-2Lines changed: 41 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,8 @@ uv sync
42
42
cp .env.example .env
43
43
# Edit .env with your API keys
44
44
45
-
# Start Redis (with RedisJSON module for content management)
46
-
docker run -d -p 6379:6379 redis/redis-stack:latest
45
+
# Start Redis 8 (no Redis Stack required)
46
+
docker run -d -p 6379:6379 redis:8-alpine
47
47
48
48
# Seed database
49
49
uv run python scripts/seed.py
@@ -93,6 +93,45 @@ TAVILY_API_KEY=your-tavily-key # Web search tool
93
93
REDIS_URL=redis://localhost:6379/0
94
94
```
95
95
96
+
97
+
## Amazon Bedrock (LLM provider option)
98
+
99
+
This repo includes scripts to automate IAM permissions for Bedrock and a local tool-calling test script.
100
+
101
+
Prerequisites
102
+
- AWS CLI v2 configured with credentials
103
+
- Region: us-east-1 (default)
104
+
105
+
1) Grant Bedrock invoke permissions to an IAM user
106
+
```bash
107
+
chmod +x scripts/bedrock_provision_access.sh
108
+
scripts/bedrock_provision_access.sh user <YOUR_IAM_USER_NAME> us-east-1
109
+
```
110
+
This attaches a minimal policy that allows invoking Bedrock models and listing model info. If you see AccessDenied during inference, enable model access in the console.
111
+
112
+
2) Enable model access (one-time, per account/region)
113
+
Open the Bedrock Model access page and enable the providers/models you plan to use (default used here is Claude 3.5 Sonnet):
tool_content+="\n\nReflect on this memory tool result and your instructions about how to use memory tools. Make subsequent memory tool calls if necessary."
812
+
tool_result_blocks.append(
813
+
{
814
+
"toolResult": {
815
+
"toolUseId": tool_use_id,
816
+
"content": [{"text": tool_content}],
817
+
"status": "success",
818
+
}
819
+
}
820
+
)
821
+
exceptExceptionase:
822
+
logger.error(f"Tool execution error for {name}: {e}")
0 commit comments