Documentation
◆ Samples
◆ Python SDK
◆ TypeScript SDK
◆ Tools
◆ Agent Builder
◆ MCP Server
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.
|
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\activateStep 2: Install pip install strands-agents strands-agents-toolsYour First Agent: from strands import Agent
agent = Agent()
response = agent("Hello! Tell me a joke.")
print(response) |
Prerequisites:
Install: npm install @strands-agents/sdkYour 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(); |
Follow the instructions here to configure your model provider and model access.
- 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
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
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
See CONTRIBUTING for more information.