Skip to content

Instantly share code, notes, and snippets.

View atcarter714's full-sized avatar
⛈️
Head in the cloud ...

Aaron Carter atcarter714

⛈️
Head in the cloud ...
View GitHub Profile
@atcarter714
atcarter714 / AssistantsSchemas.cs
Created April 3, 2025 19:12
A C# script file (CSX) implementing the OpenAI API (also works as regular C# code) ...
/* --------------------------------------------------------------------------------
* Notes (AssistantsSchemas.cs) ::
* --------------------------------------------------------------------------------
* This file contains a set of classes and interfaces that define the structure
* of the JSON objects that are used to interact with the OpenAI API. These objects
* are used to serialize and deserialize JSON data to and from C# objects.
* We use System.Text.Json for this purpose, and the classes in this file are
* designed to work with the default JSON serialization options provided by the
* System.Text.Json library (higher performance than Newtonsoft.Json).
*