Skip to content

List Generation Presets

This example assumes using Vectara; is in scope and apiKey contains your Vectara API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
using var client = new VectaraClient(apiKey);

ListGenerationPresetsResponse response = await client.GenerationPresets.ListAsync();

foreach (var preset in response.GenerationPresets ?? [])
{
    Console.WriteLine($"Preset: {preset.Name}");
    Console.WriteLine($"  Description: {preset.Description}");
    Console.WriteLine();
}