A demo project with a Next.js frontend and FastAPI backend Powered by Tavily and CopilotKit.
frontend/— Next.js 15 app (UI)agent/— FastAPI backend (Agent)
Create a .env file in each relevant directory as needed.
OPENAI_API_KEY=<<your-openai-key-here>>OPENAI_API_KEY=<<your-openai-key-here>>
TAVILY_API_KEY = <<your-tavily-key-here>>cd agent
poetry install
poetry run python main.pycd frontend
pnpm install
pnpm run devOpen http://localhost:3000 in your browser to view the app.
- Update environment variables as needed for your deployment.
