Skip to content

Latest commit

 

History

History

Console.Minimal.Prompt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Console Minimal Prompt

This sample application uses the Mscc.GenerativeAI package to respond to a prompt.

Get an API key

Navigate to the Google AI Studio and get an API key for your account.

Run the sample

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.