Class PromptRecord
Inheritance
object
PromptRecord
Assembly: .dll
Syntax
[Serializable]
public class PromptRecord
Constructors
PromptRecord()
Declaration
Properties
Api
Declaration
public AIProvider Api { get; }
Property Value
CreatedAt
Declaration
public UnixTime CreatedAt { get; }
Property Value
Type |
Description |
UnixTime |
|
Id
Unique identifier for this data.
Declaration
public string Id { get; }
Property Value
InputContents
Declaration
public List<ISerializedContent> InputContents { get; }
Property Value
InputText
Declaration
public string InputText { get; }
Property Value
ModelId
Declaration
public string ModelId { get; }
Property Value
ModelName
Declaration
public string ModelName { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
OutputContents
Declaration
public List<ISerializedContent> OutputContents { get; }
Property Value
OutputText
Declaration
public string OutputText { get; }
Property Value
Price
Declaration
public Currency Price { get; set; }
Property Value
Type |
Description |
Currency |
|
RequestOptions
Declaration
public Metadata RequestOptions { get; }
Property Value
Type |
Description |
Metadata |
|
Sender
Declaration
public string Sender { get; }
Property Value
TaskType
Declaration
public int TaskType { get; }
Property Value
Usage
Declaration
public Usage Usage { get; set; }
Property Value
Methods
Declaration
public PromptRecord AddInputAudio(params UniAudioFile[] audios)
Parameters
Type |
Name |
Description |
UniAudioFile[] |
audios |
|
Returns
Declaration
public PromptRecord AddInputImages(params UniImageFile[] images)
Parameters
Type |
Name |
Description |
UniImageFile[] |
images |
|
Returns
Equals(PromptRecord)
Declaration
public bool Equals(PromptRecord other)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
object.Equals(object)
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
object.GetHashCode()
Declaration
public string GetMetadata(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Operators
operator ==(PromptRecord, PromptRecord)
Declaration
public static bool operator ==(PromptRecord left, PromptRecord right)
Parameters
Returns
operator !=(PromptRecord, PromptRecord)
Declaration
public static bool operator !=(PromptRecord left, PromptRecord right)
Parameters
Returns