AiConversation
Represents one AI generation: what it was asked for, what it cost, and the message it speaks in.
继承自: BaseEntity
实现: IClientEntity, IMessageEntity
属性
public long? BranchFromMessageId { get; set; }
value = aiConversation.BranchFromMessageId
aiConversation.BranchFromMessageId = value
Gets or sets the original user message before which this branch cuts the context off.
public AiGenerationChannels Channel { get; set; }
value = aiConversation.Channel
aiConversation.Channel = value
Gets or sets the client channel the generation was asked for through.
public Client Client { get; set; }
value = aiConversation.Client
aiConversation.Client = value
Gets or sets the owner whose balance paid for the generation.
public decimal Cost { get; set; }
value = aiConversation.Cost
aiConversation.Cost = value
Gets or sets what the generation was charged, in the balance currency.
public string ErrorCode { get; set; }
value = aiConversation.ErrorCode
aiConversation.ErrorCode = value
Gets or sets a safe public error code, or when the generation did not fail.
public long InputTokens { get; set; }
value = aiConversation.InputTokens
aiConversation.InputTokens = value
Gets or sets how many input tokens the generation consumed.
public bool IsCompleted { get; set; }
value = aiConversation.IsCompleted
aiConversation.IsCompleted = value
Gets or sets whether the generation finished and delivered its result.
public Message Message { get; set; }
value = aiConversation.Message
aiConversation.Message = value
Gets or sets the message the generation was asked in or answered into, carrying its text, attachments, author and the chat it belongs to, or when it holds none.
public long OutputTokens { get; set; }
value = aiConversation.OutputTokens
aiConversation.OutputTokens = value
Gets or sets how many output tokens the generation produced.
public Guid? RequestId { get; set; }
value = aiConversation.RequestId
aiConversation.RequestId = value
Gets or sets the deterministic request identifier the question and its answer share.
public AIMessageRoles Role { get; set; }
value = aiConversation.Role
aiConversation.Role = value
Gets or sets the public role the generation speaks in.