Merge pull request #194 from hchen2020/master

Fix OriginAgentId
This commit is contained in:
Haiping 2023-10-27 11:15:06 -05:00 committed by GitHub
commit c266079139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
{