An open API service indexing awesome lists of open source software.

https://github.com/lokeswaran-aj/next-langgraph-example

This is an example Gen AI app built with Langgraph.js, Next.js and Vercel's AI SDK
https://github.com/lokeswaran-aj/next-langgraph-example

langchain langgraph langgraph-js nextjs vercel-ai-sdk

Last synced: 7 months ago
JSON representation

This is an example Gen AI app built with Langgraph.js, Next.js and Vercel's AI SDK

Awesome Lists containing this project

README

          

# Generative AI app built with Langgraph.js and Next.js

This is a simple app that demonstrates how to build a generative AI app with Langgraph.js, Next.js and Vercel AI SDK with streaming support.

> **Please leave a ⭐️ if you like the project!**

## Features

### Chat completions with history

Try out the chat completions with history demo at [https://next-langgraph-example.vercel.app/chat](https://next-langgraph-example.vercel.app/chat)

Chat completions with history

### Simple chat completions

Try out the simple chat completion demo at [https://next-langgraph-example.vercel.app/completion](https://next-langgraph-example.vercel.app/completion)

Simple chat completions

## How to run locally

1. Copy the `.env.example` file to `.env` and set the environment variables.

```bash
cp .env.example .env
```

2. Run the development server:

```bash
npm run dev
```

## Future work

- [x] Add simple chat completion
- [x] Add chat completions with history
- [ ] Add tool calling
- [ ] Add Generative UI with tool calling