GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CIAT-DAPA/lswms_agent: AI Agent for Waterpoints

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Waterpoints Agent

AI assistant for waterpoints information powered by the Waterpoints MCP server. Provides a Gradio chat interface where technicians, agro-pastoralist, and researchers can query waterpoint data through natural language.

Requirements

  • uv (package manager)
  • Python 3.10
  • An LLM backend accessible via LiteLLM (default: Ollama with llama3.1:8b)

Setup

# Clone the repository
git clone https://github.com/CIAT-DAPA/lswms_agent.git
cd lswms_agent

# Install dependencies
uv sync

Configuration

The agent is configured via environment variables. Create a .env file or export them in your shell:

Variable Default Description
WATERPOINTS_MCP_URL https://mcp.waterpointsmonitoring.net/mcp waterpoint MCP server URL
WATERPOINTS_AGENT_MODEL ollama/llama3.1:8b LiteLLM model identifier
WATERPOINTS_AGENT_API_BASE http://localhost:11434 LLM API base URL (e.g. your Ollama instance)

Example using a different Ollama host:

export WATERPOINTS_AGENT_MODEL="ollama/llama3.1:8b"
export WATERPOINTS_AGENT_API_BASE="http://localhost:11434"

Running the app

# Linux
uv run src/app.py

# Windows
uv run src\app.py

The Gradio interface will be available at http://localhost:7860.

Running the tests

Both test scripts are standalone (no pytest required) and are run directly with uv run.

Test 1 — MCP connection: verifies connectivity to the AClimate MCP server and lists available tools.

# Linux
uv run tests/test_mcp_connection.py

# Windows
uv run tests\test_mcp_connection.py

Test 2 — Agent integration: sends a sample query through the full agent loop and prints the response.

# Linux
uv run tests/test_agent.py

# Windows
uv run tests\test_agent.py

Project structure

lswms_agent/
├── src/
│   ├── app.py              # Gradio chat interface (entry point)
│   └── waterpoints_agent.py   # Waterpoint class
├── tests/
│   ├── test_agent.py       # End-to-end agent test
│   └── test_mcp_connection.py  # MCP connectivity test
├── pyproject.toml
├── .python-version         # Python 3.10
└── uv.lock

About

AI Agent for Waterpoints

Topics

ai-agentswaterpoints

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.