Class ResponseFormatExtensions
Inheritance
object
ResponseFormatExtensions
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public static class ResponseFormatExtensions
Methods
ToEnum<TFormatEnum>(ResponseFormat)
Converts the ResponseFormat to the specified enum type.
Declaration
public static TFormatEnum ToEnum<TFormatEnum>(this ResponseFormat format) where TFormatEnum : Enum
Parameters
Type | Name | Description |
---|---|---|
ResponseFormat | format | The response format. |
Returns
Type | Description |
---|---|
TFormatEnum | The corresponding enum value. |
Type Parameters
Name | Description |
---|---|
TFormatEnum | The enum type to convert to. |