// Initialize the client
var client = new AgentStudioClient(
new AgentStudioConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);
// Call the API
var response = await client.CreateProviderAsync(
new ProviderAuthenticationCreate
{
Name = "My OpenAI Provider",
ProviderName = Enum.Parse<ProviderName>("Openai"),
Input = new ProviderInput(new OpenAIProviderInput { ApiKey = "sk-test-key-1234" }),
}
);
// print the response
Console.WriteLine(response);