A Blog full of AI Projects

A Blog full of AI Projects

Python FastAPI with JWT Auth serving a Tool-Calling AI Agent using LangChain

21-August-2026

Python FastAPI with JWT Auth serving a Tool-Calling AI Agent using LangChain - hosted at Vercel Cloud using Serverless Functions

There is a Vue 3 SPA for the FastAPI

A production-style FastAPI backend built with LangChain, Groq LLMs, and JWT authentication. The system implements a modern tool-calling AI agent architecture that automatically decides when to use external tools such as Wikipedia for factual retrieval

Try the demo by OpenAPI...

Try the demo by Vue 3 SPA...

A Starter FastAPI + JWT Auth + AI Agent + LangChain + Vue 3 + OpenAPI / Swagger - secured by HTTPS

During the development process, I used ChatGPT for assisting with code generation and Github Copilot for code inline suggestion

DevOps by VS Code + GitHub + Vercel Cloud

The Web API at GitHub

The Vue SPA at GitHub
Software Developer - Per Olsen - Denmark