Skip to content

Commit 58051e2

Browse files
committed
Merge branch 'master' of https://github.com/SciSharp/BotSharp
2 parents 933fc3f + c266079 commit 58051e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Infrastructure/BotSharp.Abstraction/Routing/Models/RoutingContext.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ public RoutingContext(RoutingSettings setting)
1818
/// </summary>
1919
public string IntentName { get; set; }
2020

21+
/// <summary>
22+
/// Agent that can handl user original goal.
23+
/// </summary>
2124
public string OriginAgentId
22-
=> _stack.Last();
25+
=> _stack.Where(x => x != _setting.RouterId).Last();
2326

2427
public string GetCurrentAgentId()
2528
{

0 commit comments

Comments
 (0)