public WorkProvider(BotAvatar avatar, WorkflowProvider provider, WorkAgent workAgent, Planner<WorkItem> planner) { _avatar = avatar; _workflow = provider; _workAgent = workAgent; _planner = planner; }
public HumanWorkProvider(HumanAvatar user, WorkAgent workAgent, WorkflowProvider workflow, IDecompositionService<WorkItem> decompService, GoalService goalService) { _user = user; _workflow = workflow; WorkAgent = workAgent; _decompService = decompService; _goalService = goalService; _workitemGoals = new Dictionary<WorkItem, List<Goal>>(); _completedGoals = new Dictionary<WorkItem, List<Goal>>(); }
public abstract void Delegate(WorkItem item, WorkAgent other, WorkflowProvider provider);
/// <summary> /// Should be called when a work item has been completed by one of the agents /// </summary> /// <param name="agent">The agent who completed the work item</param> /// <param name="workItem">The work item that was completed</param> public abstract void EndWorkItem(WorkAgent agent, WorkItem workItem);
public WorkflowChatHandler(WorkAgent workAgent, WorkflowProvider workProvider) { _workAgent = workAgent; _workflow = workProvider; }