This repository provides a quickstart guide for using the Agent Catalog with Capella Model Services and Couchbase.
- Python 3.12+
- Poetry (Installation Guide)
- Git (for repository management)
- An OpenAI API Key (or other LLM provider)
- Couchbase Capella account (or local Couchbase installation)
The simplest way to get started with any individual agent:
# Install Agent Catalog packages
pip3 install agentc agentc-core agentc-cli agentc-langchain agentc-langgraph agentc-llamaindex
# Install Arize Phoenix and evaluation dependencies
pip3 install "arize-phoenix[evals]" arize arize-otel openinference-instrumentation-langchain openinference-instrumentation-openai openinference-instrumentation-llama-index
# Fix OpenTelemetry version conflicts (if needed)
pip3 install --upgrade opentelemetry-instrumentation-asgi opentelemetry-instrumentation-fastapi opentelemetry-util-http
# Install root dependencies
poetry install
# Choose an agent project and install its dependencies
cd notebooks/hotel_search_agent_langchain
# OR cd notebooks/flight_search_agent_langraph
# OR cd notebooks/landmark_search_agent_llamaindex
# Install notebook-specific dependencies
poetry install --no-root
# Set up your environment (see Environment Configuration below)
cp .env.sample .env
# Edit .env with your credentials
# Run the agent
poetry run python main.py
That's it! π― The pip3 install
handles all Agent Catalog packages, and Poetry manages the project-specific dependencies.
If you encounter issues with the pip installation or prefer an automated approach:
# Clone the repository
git clone https://github.com/couchbaselabs/agent-catalog-quickstart.git
cd agent-catalog-quickstart
# Run the automated setup script
bash scripts/setup.sh
This fallback script will:
- Install all Agent Catalog libraries from local source
- Set up all three agent environments
- Install the global
agentc
CLI command - Verify the installation
The easiest approach using published packages:
# Install Agent Catalog packages from PyPI
pip3 install agentc agentc-core agentc-cli agentc-langchain agentc-langgraph agentc-llamaindex
# Install Arize Phoenix and evaluation dependencies
pip3 install "arize-phoenix[evals]" arize arize-otel openinference-instrumentation-langchain openinference-instrumentation-openai openinference-instrumentation-llama-index
# Fix OpenTelemetry version conflicts (if needed)
pip3 install --upgrade opentelemetry-instrumentation-asgi opentelemetry-instrumentation-fastapi opentelemetry-util-http
# Install root dependencies
poetry install
# Navigate to any agent directory
cd notebooks/hotel_search_agent_langchain
# Install notebook-specific dependencies
poetry install --no-root
# Set up environment
cp .env.sample .env
# Edit .env with your credentials
# Test the installation
poetry run python -c "import agentc; print('β
Agent Catalog ready!')"
If you need to modify the Agent Catalog source code:
# Install Agent Catalog libraries from local source
pip install -e agent-catalog/libs/agentc_core
pip install -e agent-catalog/libs/agentc_cli
pip install -e agent-catalog/libs/agentc
pip install -e agent-catalog/libs/agentc_integrations/langchain
pip install -e agent-catalog/libs/agentc_integrations/langgraph
pip install -e agent-catalog/libs/agentc_integrations/llamaindex
# Install root dependencies
poetry install
# Install each agent's dependencies
cd notebooks/flight_search_agent_langraph && poetry install --no-root && cd ../..
cd notebooks/hotel_search_agent_langchain && poetry install --no-root && cd ../..
cd notebooks/landmark_search_agent_llamaindex && poetry install --no-root && cd ../..
# Verify installation
agentc --help
Each agent needs its own .env
file with your credentials:
# Copy the sample file and edit it
cp .env.sample .env
# Edit .env with your actual credentials
Required files:
notebooks/flight_search_agent_langraph/.env
notebooks/hotel_search_agent_langchain/.env
notebooks/landmark_search_agent_llamaindex/.env
For complete environment configuration examples (Capella vs Local), see TROUBLESHOOTING.md.
If you used the recommended individual setup:
cd notebooks/hotel_search_agent_langchain
# Run the agent
poetry run python main.py
# Run with specific queries
poetry run python main.py "Find hotels in Paris with free breakfast"
# Run evaluations
poetry run python evals/eval_arize.py
If you installed the global CLI:
cd notebooks/hotel_search_agent_langchain
# Initialize Agent Catalog
agentc init
# Index your agent
agentc index .
# Publish your agent (requires clean git)
git add . && git commit -m "Your changes"
agentc publish
# Run the agent
python main.py "Find hotels in Paris with free breakfast"
This quickstart includes three self-contained example agents:
- Framework: LangGraph
- Setup:
poetry install --no-root
- Run:
poetry run python main.py
- Framework: LangChain
- Setup:
poetry install --no-root
- Run:
poetry run python main.py
- Framework: LlamaIndex
- Setup:
poetry install --no-root
- Run:
poetry run python main.py
Each example is completely independent and includes:
- Complete source code with all dependencies
- Configuration files (
pyproject.toml
,.env.sample
) - Test cases and evaluation scripts
- Documentation and prompts
- One-command setup with Poetry
Command | Description |
---|---|
agentc init |
Initialize agent catalog in current directory |
agentc index . |
Index the current agent directory |
agentc publish |
Publish agent to catalog (requires clean git status) |
agentc --help |
Show all available commands |
agentc env |
Show environment configuration |
Having issues? Check our comprehensive troubleshooting guide: TROUBLESHOOTING.md
- "No module named 'agentc'": Run
pip3 install agentc agentc-core agentc-cli agentc-langchain agentc-langgraph agentc-llamaindex
- "No module named 'phoenix'" or evaluation errors: Run
pip3 install "arize-phoenix[evals]" arize arize-otel openinference-instrumentation-langchain openinference-instrumentation-openai openinference-instrumentation-llama-index
- OpenTelemetry version conflicts: Run
pip3 install --upgrade opentelemetry-instrumentation-asgi opentelemetry-instrumentation-fastapi opentelemetry-util-http
- Poetry issues: Delete
poetry.lock
and runpoetry install --no-root
again - Environment errors: Copy
.env.sample
to.env
and edit with your credentials - CLI not found: Try the fallback setup script:
bash scripts/setup.sh
For detailed solutions, environment configuration examples, and debugging commands, see TROUBLESHOOTING.md.
- Create a new directory under
notebooks/
- Add your agent code, prompts, and tools
- Create appropriate configuration files (
pyproject.toml
,.env
) - Install Agent Catalog:
pip3 install agentc agentc-core agentc-cli agentc-langchain agentc-langgraph agentc-llamaindex
- Install root dependencies:
poetry install
- Run
poetry install --no-root
in the new directory - Run
agentc init
andagentc index .
Run evaluations with Arize:
poetry run python evals/eval_arize.py
Each example agent follows this structure:
notebooks/agent_name/
βββ main.py # Main agent implementation
βββ pyproject.toml # Poetry dependencies (requires poetry install)
βββ .env # Environment configuration
βββ prompts/ # Agent prompts and templates
βββ tools/ # Agent tools and functions
βββ data/ # Data loading and processing
βββ evals/ # Evaluation scripts
This is a quickstart repository. For contributing to the main Agent Catalog:
- Fork the repository
- Create a feature branch
- Make your changes
- Ensure all poetry dependencies are installed
- Commit changes (required for publishing)
- Submit a pull request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.