using var client = new GeminiClient(apiKey);
GenerateContentResponse response = await client.GenerateContentAsync(
modelId: "gemini-1.5-flash-latest",
contents: [
new Content
{
Parts = [
new Part
{
Text = "Generate 5 random words",
},
],
Role = "user",
},
],
generationConfig: new GenerationConfig(),
safetySettings: new List<SafetySetting>());
Console.WriteLine(response.Candidates?[0].Content?.Parts?[0].Text);