Welcome to the Strands Agents Samples repository!
Explore easy-to-use examples to get started with Strands Agents.
The examples in this repository are for demonstration and educational purposes only. They demonstrate concepts and techniques but are not intended for direct use in production. Always apply proper security and testing procedures before using in production environments.
Quick Start
|
Prerequisites:
Step 1: Create Virtual Environment # Create virtual environment python -m venv venv # Activate virtual environment # On macOS/Linux: source venv/bin/activate # On Windows: venv\Scripts\activate Step 2: Install pip install strands-agents strands-agents-tools Your First Agent: from strands import Agent agent = Agent() response = agent("Hello! Tell me a joke.") print(response) |
Prerequisites:
Install: npm install @strands-agents/sdk Your First Agent: import { Agent } from "@strands-agents/sdk"; async function main() { const agent = new Agent({ systemPrompt: "You are a helpful assistant." }); const response = await agent.invoke("Hello! Tell me a joke."); console.log(response.toString()); } main(); |
Model Provider Setup
Follow the instructions here to configure your model provider and model access.
Explore the Repository
- 01-tutorials - Jupyter notebook tutorials covering fundamentals, multi-agent systems, and deployment
- 02-samples - Real-world use cases and industry-specific examples
- 03-integrations - Integration examples with AWS services and third-party tools
- 04-UX-demos - Full-stack applications with user interfaces
- 05-agentic-rag - Advanced Agentic RAG patterns
- 06-edge - Edge device integrations including physical AI and robotics
- typescript/01-tutorials - Step-by-step tutorials for the TypeScript SDK
Contributing ❤️
We welcome contributions! See our Contributing Guide for details on:
- Reporting bugs & features
- Development setup
- Contributing via Pull Requests
- Code of Conduct
- Reporting of security issues
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Security
See CONTRIBUTING for more information.