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)
Two ways to get running fast. Choose one.
git clone https://github.com/couchbaselabs/agent-catalog-quickstart.git
cd agent-catalog-quickstart
bash scripts/setup.sh --yes # add --skip-testing to speed up
# pick an agent and configure env
cd notebooks/hotel_search_agent_langchain
cp .env.sample .env && $EDITOR .env
# run
poetry run python main.py
# from repo root
poetry -C notebooks/flight_search_agent_langraph install --no-root
cp notebooks/flight_search_agent_langraph/.env.sample notebooks/flight_search_agent_langraph/.env
$EDITOR notebooks/flight_search_agent_langraph/.env
poetry -C notebooks/flight_search_agent_langraph run python main.py
If Poetry or local installs give you trouble, you can install the core packages globally and proceed with per-agent setup:
# 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
Then run the per-agent commands under "2) Per-agent setup (fastest)" above.
Each example is independent and includes code, prompts, tools, and evals.
- Framework: LangGraph
- Install:
poetry -C notebooks/flight_search_agent_langraph install --no-root
- Run:
poetry -C notebooks/flight_search_agent_langraph run python main.py
- Framework: LangChain
- Install:
poetry -C notebooks/hotel_search_agent_langchain install --no-root
- Run:
poetry -C notebooks/hotel_search_agent_langchain run python main.py
- Framework: LlamaIndex
- Install:
poetry -C notebooks/landmark_search_agent_llamaindex install --no-root
- Run:
poetry -C notebooks/landmark_search_agent_llamaindex run python main.py
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.
# run with a query
poetry -C notebooks/hotel_search_agent_langchain run python main.py "Find hotels in Paris with free breakfast"
# run evaluations (Arize)
poetry -C notebooks/hotel_search_agent_langchain 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"
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'": ensure you ran
poetry -C notebooks/<agent> install --no-root
and are executing with Poetry (poetry run ...
). - Evaluation deps missing: run the agent-specific Poetry install again; eval deps are included per agent.
- Poetry issues: delete the agentβs
poetry.lock
and runpoetry -C notebooks/<agent> install --no-root
. - Environment errors: copy
.env.sample
to.env
in the agent folder and fill in credentials. - CLI not found after script: restart your shell or run
export PATH="$PATH:$HOME/.local/bin"
; rerunbash scripts/setup.sh --yes
if needed.
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.