Unreal OpenAI API 1.0.0
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
UJsonFuncLib Class Reference
Inheritance diagram for UJsonFuncLib:

Static Public Member Functions

static bool StringToJson (const FString &JsonString, TSharedPtr< FJsonObject > &JsonObject)
 
static bool JsonToString (const TSharedPtr< FJsonObject > &JsonObject, FString &JsonString)
 
template<typename OutStructType >
static bool ParseJSONToStruct (const FString &Data, OutStructType *OutStruct)
 
static FString RemoveOptionalValuesThatNotSet (const FString &JsonString)
 
static void RemoveEmptyArrays (const TSharedPtr< FJsonObject > &JsonObject)
 
static FString MakeFunctionsString (const TSharedPtr< FJsonObject > &Json)
 
static FString CleanUpFunctionsObject (const FString &Input)
 
static bool OpenAIResponseContainsError (const TSharedPtr< FJsonObject > &JsonObject)
 

Static Private Member Functions

static void RemoveOptionalValuesInJsonObject (const TSharedPtr< FJsonObject > &JsonObject)
 
static void ProcessJsonArrayRemovingEmptyArrays (TArray< TSharedPtr< FJsonValue > > &JsonArray)
 

Static Private Attributes

static const FString START_FUNCTION_OBJECT_MARKER = "START_FUNCTION_OBJECT_MARKER"
 
static const FString END_FUNCTION_OBJECT_MARKER = "END_FUNCTION_OBJECT_MARKER"
 

The documentation for this class was generated from the following files: