planting runtime seeds
This commit is contained in:
21
OpenJibo/src/Jibo.Runtime.Abstractions/TurnContext.cs
Normal file
21
OpenJibo/src/Jibo.Runtime.Abstractions/TurnContext.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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; }
|
||||
|
||||
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?>();
|
||||
}
|
||||
Reference in New Issue
Block a user