Skip to content

AIthelete: An AI Agent built with LangChain and Next.js to craft personalized training plans with detailed feedback and recommendations. Get fit with code! πŸ’ͺ πŸš€

Notifications You must be signed in to change notification settings

mbarinov/aithelete

Repository files navigation

πŸ‹οΈβ€β™‚οΈ AIthelete

Welcome to AIthelete! This project is an AI Agent designed to create training plans. By providing detailed feedback and recommendations, it ensures that workout plans are effective, safe, and tailored to individual needs.

πŸ› οΈ Built With

  • Next.js
  • TypeScript
  • LangChain
  • LangGraph

πŸš€ Demo

Check out the live demo: AIthelete Demo

πŸš€ Getting Started

To get a local copy up and running, follow these simple steps.

πŸ“‚ Important Files

  • LangGraph Agent - The main agent that orchestrates generating and critiquing training plans.
  • Generate Node - The node that generates a training plan.
  • Critique Node - The node that critiques a training plan.
  • Prompts - The prompts used by the agent to generate and critique training plans.

Prerequisites

Make sure you have the following installed:

  • Node.js
  • pnpm
  • PostgreSQL
  • OpenAI API Keys

Installation

  1. Clone the repo:
    git clone https://github.com/mbarinov/aithelete.git
  2. Navigate to the project directory:
    cd aithelete
  3. Install dependencies:
    pnpm install
  4. Set up your environment variables by copying .env.example to .env and filling in the required values:
    cp .env.example .env
  5. Push the Prisma schema to your database:
    npx prisma db push

Running the Development Server

Start the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.

πŸ§‘β€πŸ’» Authors

About

AIthelete: An AI Agent built with LangChain and Next.js to craft personalized training plans with detailed feedback and recommendations. Get fit with code! πŸ’ͺ πŸš€

Topics

Resources

Stars

Watchers

Forks