7 references to FoundryRole
Aspire.Hosting.Foundry (7)
FoundryExtensions.cs (7)
254
/// <param name="roles">The Microsoft Foundry roles to be assigned (for example, <see cref="
FoundryRole
.CognitiveServicesOpenAIUser"/>).</param>
257
/// <exception cref="ArgumentException">Thrown when a role value is not a valid <see cref="
FoundryRole
"/> value.</exception>
262
params
FoundryRole
[] roles)
275
FoundryRole
.CognitiveServicesOpenAIContributor => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIContributor,
276
FoundryRole
.CognitiveServicesOpenAIUser => CognitiveServicesBuiltInRole.CognitiveServicesOpenAIUser,
277
FoundryRole
.CognitiveServicesUser => CognitiveServicesBuiltInRole.CognitiveServicesUser,
278
_ => throw new ArgumentException($"'{roles[i]}' is not a valid {nameof(
FoundryRole
)} value.", nameof(roles))