7 references to FoundryRole
Aspire.Hosting.Foundry (7)
FoundryExtensions.cs (7)
310
/// <param name="roles">The Microsoft Foundry roles to be assigned (for example, <see cref="
FoundryRole
.CognitiveServicesOpenAIUser"/>).</param>
313
/// <exception cref="ArgumentException">Thrown when a role value is not a valid <see cref="
FoundryRole
"/> value.</exception>
318
params
FoundryRole
[] roles)
331
FoundryRole
.CognitiveServicesOpenAIContributor => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIContributor,
332
FoundryRole
.CognitiveServicesOpenAIUser => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIUser,
333
FoundryRole
.CognitiveServicesUser => CognitiveServicesBuiltInRole.CognitiveServicesUser,
334
_ => throw new ArgumentException($"'{roles[i]}' is not a valid {nameof(
FoundryRole
)} value.", nameof(roles))