This sample application uses the Mscc.GenerativeAI
package to respond to a prompt.
Navigate to the Google AI Studio and get an API key for your account.
Navigate to the project's folder, open a terminal or console, and run the following command using your API key.
GOOGLE_API_KEY=AIza... dotnet run
The application will prompt you for a prompt.
Enter a prompt (Press Escape to exit):
You can exit the application by pressing the Escape key or using Ctrl+C.