Skip to content

AvizNetworks/ncp-sdk-examples

Repository files navigation

NCP SDK Examples

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.


🎯 Getting Started

Prerequisites

  • Python 3.8+ (Python 3.9+ recommended)
  • pip package manager
  • ncp-sdk installed (pip install ncp-sdk)

Quick Setup

# 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 --help

📖 How to Use These Examples

Learning Path

We recommend following this sequence:

  1. Start with hello-agent - Learn the basics
  2. Pick examples by interest - Choose what's relevant to you
  3. Modify and experiment - Best way to learn!
  4. Build your own - Apply what you've learned

Each Example Includes

  • 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

Running an Example

# 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

🛠️ Development Workflow

Common Commands

# 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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages