7 references to FoundryRole
Aspire.Hosting.Foundry (7)
FoundryExtensions.cs (7)
208
/// <param name="roles">The Microsoft Foundry roles to be assigned (for example, <see cref="
FoundryRole
.CognitiveServicesOpenAIUser"/>).</param>
210
/// <exception cref="ArgumentException">Thrown when a role value is not a valid <see cref="
FoundryRole
"/> value.</exception>
215
params
FoundryRole
[] roles)
228
FoundryRole
.CognitiveServicesOpenAIContributor => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIContributor,
229
FoundryRole
.CognitiveServicesOpenAIUser => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIUser,
230
FoundryRole
.CognitiveServicesUser => CognitiveServicesBuiltInRole.CognitiveServicesUser,
231
_ => throw new ArgumentException($"'{roles[i]}' is not a valid {nameof(
FoundryRole
)} value.", nameof(roles))