bobby test
Agentuity Chat is a web application that allows users to interact with an AI agent. The application is built using Next.js, TypeScript, and Tailwind CSS, and it provides a user-friendly interface for chatting with the AI.
It uses the Vercel AI SDK to generate responses from the AI agent, and it includes features such as:
- Message history
- Easily swap AI models and providers with a single line of code
- Lightweight and extensible UI
The project is a monorepo that includes a Next.js app that serves as the frontend for the Agentuity Chat agent.
The app is built with the following technologies:
- Next.js: A React framework for building server-rendered applications.
- TypeScript: A superset of JavaScript that adds static typing to the language.
- Tailwind CSS: A utility-first CSS framework for building custom designs.
- Vercel AI SDK: A library for interacting with AI models and generating responses.
- Agentuity: A platform for creating and managing AI agents.
The web application was bootstrapped with create-next-app and includes a custom server setup for handling Chat requests. The agent project was created using the Agentuity cli agentuity create.
To get started with the project, follow these steps:
- Clone the repository to your local machine.
- Install the dependencies using your package manager of choice (npm, yarn, pnpm, or bun).
Each application has its own .env file for configuration. The .env file should contain the following environment variables:
AGENTUITY_API_KEY: Your Agentuity SDK key.
AGENTUITY_URL: The URL for the Agentuity Agent API.
- Navigate to the
apps/chat-webdirectory.
# For npm
npm run dev- In a separate tab Navigate to the
apps/chat-agentsdirectory.
agentuity dev- Open your browser and navigate to http://localhost:3000 to see the application in action.
If you would like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with a descriptive message.
To learn more about Agentuity, check out the following resources:
- Agentuity - the official website for Agentuity.
- Agentuity Introduction - learn about Agentuity and how it works.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
To deploy your Agentuity Chat agent, you can use the Agentuity CLI. Follow these steps:
- Install the Agentuity CLI globally if you haven't already:
npm install -g agentuity- Navigate to the
apps/chat-agentsdirectory.
cd apps/chat-agents- Run the following command to deploy your agent:
agentuity deploy- Follow the prompts to configure your deployment settings.
- Once the deployment is complete, you will receive a URL for your deployed agent.
- You can now use this URL to access your deployed agent.
- To update your agent, make changes to the code and run the
agentuity deploycommand again. - To view the logs of your deployed agent, run the following command:
agentuity logsThe easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.