22 lines
523 B
C#
22 lines
523 B
C#
namespace backend.Conversations;
|
|
|
|
public enum TurnRole
|
|
{
|
|
User = 0,
|
|
Assistant = 1,
|
|
Tool = 2,
|
|
}
|
|
|
|
public class Turn
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ConversationId { get; set; }
|
|
public int Index { get; set; }
|
|
public TurnRole Role { get; set; }
|
|
public string? Text { get; set; }
|
|
public string? ToolName { get; set; }
|
|
public string? ToolArgsJson { get; set; }
|
|
public string? ToolResultJson { get; set; }
|
|
public DateTimeOffset CreatedAt { get; set; }
|
|
}
|