Learn by doing: hands-on examples for building AI agents with the NCP SDK
This repository contains complete, working examples that demonstrate how to build AI agents using the NCP SDK. Each example is designed to teach specific concepts while providing production-ready code you can learn from.
- Python 3.8+ (Python 3.9+ recommended)
- pip package manager
- ncp-sdk installed (
pip install ncp-sdk)
# Clone this repository
git clone <repository-url>
cd ncp-sdk-examples
# Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install NCP SDK
pip install ncp-sdk
# Verify installation
ncp --helpWe recommend following this sequence:
- Start with hello-agent - Learn the basics
- Pick examples by interest - Choose what's relevant to you
- Modify and experiment - Best way to learn!
- Build your own - Apply what you've learned
- ✅ Comprehensive README: Step-by-step tutorial
- ✅ Complete Code: Production-ready, commented
- ✅ Project Structure: Standard NCP SDK layout
- ✅ Example Interactions: See what it does
- ✅ Key Takeaways: What you learned
- ✅ Next Steps: How to extend it
# Navigate to the example
cd <example-name>
# Install dependencies
pip install -r requirements.txt
# Validate the project
ncp validate .
# Deploy to platform
ncp authenticate
ncp package .
ncp deploy <example-name>.ncp# Validate your agent
ncp validate .
# Package for deployment
ncp package .
# Authenticate with platform
ncp authenticate
# Deploy to platform
ncp deploy <agent>.ncp
# Test interactively
ncp playground --agent <agent-name>
# Remove agent
ncp remove --agent <agent-name>