Пример #1
0
 public WorkProvider(BotAvatar avatar, WorkflowProvider provider, WorkAgent workAgent, Planner<WorkItem> planner)
 {
     _avatar = avatar;
     _workflow = provider;
     _workAgent = workAgent;
     _planner = planner;
 }
Пример #2
0
 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>>();
 }
Пример #3
0
 public abstract void Delegate(WorkItem item, WorkAgent other, WorkflowProvider provider);
Пример #4
0
 /// <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);
Пример #5
0
 public WorkflowChatHandler(WorkAgent workAgent, WorkflowProvider workProvider)
 {
     _workAgent = workAgent;
     _workflow = workProvider;
 }