Fix OriginAgentId

This commit is contained in:
Haiping Chen 2023-10-26 20:23:06 -05:00
parent 7ab383aa53
commit cee91acaaa

View file

@ -18,8 +18,11 @@ public class RoutingContext
/// </summary>
public string IntentName { get; set; }
/// <summary>
/// Agent that can handl user original goal.
/// </summary>
public string OriginAgentId
=> _stack.Last();
=> _stack.Where(x => x != _setting.RouterId).Last();
public string GetCurrentAgentId()
{