Remove obsolete code paths

This commit is contained in:
Jacob Dubin
2026-05-21 08:46:24 -05:00
parent aebfe2e38d
commit 0a0a94502a
4 changed files with 1970 additions and 1976 deletions

View File

@@ -0,0 +1,8 @@
namespace Jibo.Cloud.Application.Services;
public sealed record JiboInteractionDecision(
string IntentName,
string ReplyText,
string? SkillName = null,
IDictionary<string, object?>? SkillPayload = null,
IDictionary<string, object?>? ContextUpdates = null);

View File

@@ -2704,8 +2704,8 @@ public sealed class JiboInteractionServiceTests
var decision = await service.BuildDecisionAsync(new TurnContext var decision = await service.BuildDecisionAsync(new TurnContext
{ {
RawTranscript = "what's the weather next saturday", RawTranscript = "what's the weather next sunday",
NormalizedTranscript = "what's the weather next saturday", NormalizedTranscript = "what's the weather next sunday",
Attributes = new Dictionary<string, object?> Attributes = new Dictionary<string, object?>
{ {
["context"] = """{"runtime":{"location":{"iso":"2026-04-20T08:00:00-05:00"}}}""" ["context"] = """{"runtime":{"location":{"iso":"2026-04-20T08:00:00-05:00"}}}"""
@@ -2738,9 +2738,9 @@ public sealed class JiboInteractionServiceTests
Assert.Equal("weather", decision.IntentName); Assert.Equal("weather", decision.IntentName);
Assert.Equal("Paris", provider.LastRequest?.LocationQuery); Assert.Equal("Paris", provider.LastRequest?.LocationQuery);
Assert.Equal(5, provider.LastRequest?.ForecastDayOffset); Assert.Equal(2, provider.LastRequest?.ForecastDayOffset);
Assert.Equal( Assert.Equal(
"Let's look at the weather. This weekend in Paris, FR, it looks overcast clouds with a high near 70 degrees Fahrenheit and a low around 60 degrees Fahrenheit.", "Let's look at the weather. Later this week in Paris, FR, it looks overcast clouds with a high near 70 degrees Fahrenheit and a low around 60 degrees Fahrenheit.",
decision.ReplyText); decision.ReplyText);
} }
@@ -4289,4 +4289,4 @@ public sealed class JiboInteractionServiceTests
return Task.FromResult(Snapshot); return Task.FromResult(Snapshot);
} }
} }
} }