Skip to content

List Encoders

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);

ListEncodersResponse response = await client.Encoders.ListAsync();

foreach (var encoder in response.Encoders ?? [])
{
    Console.WriteLine($"Encoder: {encoder.Name} (ID: {encoder.Id})");
    Console.WriteLine($"  Description: {encoder.Description}");
    Console.WriteLine();
}