Setting up AI behavior in C#

How can I specify AI behavior settings using C#?

Hi,
Perhaps one of the easy ways might be to use a NuGet package like NuGet Gallery | Mscc.GenerativeAI 2.0.1