- Step1: Install the Sharp-GPT NuGet package in your .NET project.
- Step2: Define an interface and decorate methods with [ChatCompletion] attributes to specify prompts and settings.
- Step3: Register Sharp-GPT in your dependency injection container with your OpenAI or Azure API key.
- Step4: Inject and call your agent interface in code to invoke GPT-powered methods.
- Step5: Handle streaming events or receive structured JSON responses automatically mapped to C# types.
- Step6: Configure memory store, logging, and fallback policies as needed.