Fix OriginAgentId
This commit is contained in:
parent
7ab383aa53
commit
cee91acaaa
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue