示例#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;
 }