Class ContentPartWrapper
An array of content parts with a defined type,
each can be of type Text or Image_Url when passing in images.
You can pass multiple images by adding multiple Image_Url content parts.
Image input is only supported when using the gpt-4-visual-preview model.
Inheritance
object
ContentPartWrapper
Assembly: .dll
Syntax
public class ContentPartWrapper
Constructors
ContentPartWrapper()
Declaration
public ContentPartWrapper()
ContentPartWrapper(ContentPart)
Declaration
public ContentPartWrapper(ContentPart part)
Parameters
ContentPartWrapper(string)
Declaration
public ContentPartWrapper(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Properties
HasValue
Declaration
public bool HasValue { get; }
Property Value
IsBase64
Declaration
public bool IsBase64 { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
IsString
Declaration
public bool IsString { get; }
Property Value
Type
Declaration
public ContentPartType Type { get; }
Property Value
Methods
ToPart()
Declaration
public ContentPart ToPart()
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Operators
implicit operator string(ContentPartWrapper)
Declaration
public static implicit operator string(ContentPartWrapper content)
Parameters
Returns
implicit operator ContentPartWrapper(string)
Declaration
public static implicit operator ContentPartWrapper(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns