This project demonstrates a simple LangChain AI agent that can be used from the command line or through a FastAPI web application.
1. Setup - Provide your Hugging Face Hub API token via a .env file in the project root:
HUGGINGFACEHUB_API_TOKEN=your_token_here
2. Command Line Interface - Run the interactive CLI:
uv run python main.py
3. FastAPI Server - Open http://localhost:8000/ in your browser to access a minimal chat interface. Enter a message and the page will display the agent's reply.
uv run uvicorn app:app --reload
Open http://localhost:8000/ in your browser to access a minimal chat interface. Enter a message and the page will display the agent's reply.