Skip to content

Agentic Copilot built with LangGraph, CopilotKit, Tavily & Next.js. it will handle user requests by performing multiple search queries and stream the search back with status and results in real-time to the client.

Notifications You must be signed in to change notification settings

ultrasage-danz/simple-ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Researcher Example

This example is a simple AI based search engine.

You can find an online demo of this example here.

These instructions assume you are in the coagents-ai-researcher/ directory

Running the Agent

First, install the dependencies:

cd agent
poetry install

Then, create a .env file inside ./agent with the following:

OPENAI_API_KEY=...
TAVILY_API_KEY=...

IMPORTANT: Make sure the OpenAI API Key you provide, supports gpt-4o.

Then, run the demo:

poetry run demo

Running the UI

First, install the dependencies:

cd ./ui
pnpm i

Then, create a .env file inside ./ui with the following:

OPENAI_API_KEY=...

Then, run the Next.js project:

pnpm run dev

Usage

Navigate to http://localhost:3000.

LangGraph Studio

Run LangGraph studio, then load the ./agent folder into it.

Make sure to create teh .env mentioned above first!

Troubleshooting

A few things to try if you are running into trouble:

  1. Make sure there is no other local application server running on the 8000 port.
  2. Under /agent/my_agent/demo.py, change 0.0.0.0 to 127.0.0.1 or to localhost

About

Agentic Copilot built with LangGraph, CopilotKit, Tavily & Next.js. it will handle user requests by performing multiple search queries and stream the search back with status and results in real-time to the client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published