Class ResponseExtensions
Inheritance
object
ResponseExtensions
Namespace: Glitch9.AIDevKit.OpenAI
Assembly: .dll
Syntax
public static class ResponseExtensions
Methods
GetImageFiles(ContentPartWrapper[])
Extracts all image files from the given array of MessageContent.
Declaration
public static List<UniImageFile> GetImageFiles(this ContentPartWrapper[] content)
Parameters
Type | Name | Description |
---|---|---|
ContentPartWrapper[] | content | Array of MessageContent |
Returns
Type | Description |
---|---|
List<UniImageFile> | List of extracted UnityImageFile objects |
GetTexts(List<ContentPartWrapper>)
Extracts all text values from the given array of MessageContent.
Declaration
public static List<string> GetTexts(this List<ContentPartWrapper> content)
Parameters
Type | Name | Description |
---|---|---|
List<ContentPartWrapper> | content | Array of MessageContent |
Returns
Type | Description |
---|---|
List<string> | List of extracted text values |