2026-03-23 07:51:32 -05:00
|
|
|
|
namespace Jibo.Runtime.Abstractions;
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class TurnContext
|
|
|
|
|
|
{
|
|
|
|
|
|
public string TurnId { get; init; } = Guid.NewGuid().ToString("N");
|
|
|
|
|
|
public string SessionId { get; init; } = string.Empty;
|
|
|
|
|
|
public DateTimeOffset TimestampUtc { get; init; } = DateTimeOffset.UtcNow;
|
|
|
|
|
|
|
|
|
|
|
|
public TurnInputMode InputMode { get; init; }
|
|
|
|
|
|
public TurnSourceKind SourceKind { get; init; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? WakePhrase { get; init; }
|
|
|
|
|
|
public string? RawTranscript { get; init; }
|
|
|
|
|
|
public string? NormalizedTranscript { get; init; }
|
2026-04-11 07:12:57 -05:00
|
|
|
|
public string? DeviceId { get; init; }
|
|
|
|
|
|
public string? HostName { get; init; }
|
|
|
|
|
|
public string? RequestId { get; init; }
|
|
|
|
|
|
public string? ProtocolService { get; init; }
|
|
|
|
|
|
public string? ProtocolOperation { get; init; }
|
|
|
|
|
|
public string? FirmwareVersion { get; init; }
|
|
|
|
|
|
public string? ApplicationVersion { get; init; }
|
2026-03-23 07:51:32 -05:00
|
|
|
|
|
|
|
|
|
|
public string? Locale { get; init; } = "en-US";
|
|
|
|
|
|
public string? TimeZone { get; init; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsFollowUpEligible { get; init; }
|
|
|
|
|
|
public IDictionary<string, object?> Attributes { get; init; } = new Dictionary<string, object?>();
|
2026-04-11 07:12:57 -05:00
|
|
|
|
}
|