AiConversation

StockSharp.Web.DomainModel

Represents one AI generation: what it was asked for, what it cost, and the message it speaks in.

継承元: BaseEntity

実装: IClientEntity, IMessageEntity

プロパティ

BranchFromMessageId
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.

Channel
public AiGenerationChannels Channel { get; set; }
value = aiConversation.Channel
aiConversation.Channel = value

Gets or sets the client channel the generation was asked for through.

Client
public Client Client { get; set; }
value = aiConversation.Client
aiConversation.Client = value

Gets or sets the owner whose balance paid for the generation.

Cost
public decimal Cost { get; set; }
value = aiConversation.Cost
aiConversation.Cost = value

Gets or sets what the generation was charged, in the balance currency.

ErrorCode
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.

InputTokens
public long InputTokens { get; set; }
value = aiConversation.InputTokens
aiConversation.InputTokens = value

Gets or sets how many input tokens the generation consumed.

IsCompleted
public bool IsCompleted { get; set; }
value = aiConversation.IsCompleted
aiConversation.IsCompleted = value

Gets or sets whether the generation finished and delivered its result.

Message
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.

OutputTokens
public long OutputTokens { get; set; }
value = aiConversation.OutputTokens
aiConversation.OutputTokens = value

Gets or sets how many output tokens the generation produced.

RequestId
public Guid? RequestId { get; set; }
value = aiConversation.RequestId
aiConversation.RequestId = value

Gets or sets the deterministic request identifier the question and its answer share.

Role
public AIMessageRoles Role { get; set; }
value = aiConversation.Role
aiConversation.Role = value

Gets or sets the public role the generation speaks in.