Inspo: dining philosophers
Enjoy!
The frontend is a React application built with Vite, located in the frontend/
directory.
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Compile Protocol Buffers (if you modified
.proto
files):npm run compile:proto
- Run the development server:
The application should now be accessible in your browser (usually at
npm run dev
http://localhost:5173
).
To provide a default API key for services like Gemini, you can use an environment file:
-
Create a new file named
.env
in thefrontend/
directory (i.e.,frontend/.env
). -
Add your API key to this file, prefixed with
VITE_
. For example, for a default Gemini API key:VITE_DEFAULT_GEMINI_API_KEY="YOUR_GEMINI_API_KEY_HERE"
Replace
"YOUR_GEMINI_API_KEY_HERE"
with your actual API key.Note: The
frontend/.env
file is ignored by Git (as configured infrontend/.gitignore
) to prevent accidental commitment of sensitive keys. You can create afrontend/.env.example
file if you want to provide a template for other developers.If an API key is provided directly in an agent's configuration form in the UI, it will take precedence over the default key from the
.env
file for that specific agent.