class_docstr: Base class for a person on a chat serivce that can act in a ParlAI world.
class_docstr_tok: ["Base","class","for","a","person","on","a","chat","serivce","that","can","act","in","a","ParlAI","world","."]
docstr: Add an action to the queue with given id and info if it hasn't already been
  seen.
  
  :param action:
      action to be added to message queue
  :param act_id:
      an identifier to check if the action has been seen or to
      mark the action as seen
  :param act_data:
      any data about the given action you may want to record when
      marking it as seen
docstr_tok: ["Add","an","action","to","the","queue","with","given","id","and","info","if","it","has","n't","already","been","seen",".",":","param","action",":","action","to","be","added","to","message","queue",":","param","act_id",":","an","identifier","to","check","if","the","action","has","been","seen","or","to","mark","the","action","as","seen",":","param","act_data",":","any","data","about","the","given","action","you","may","want","to","record","when","marking","it","as","seen"]
code: def _queue_action(self, action, act_id, act_data=None):
      """
      Add an action to the queue with given id and info if it hasn't already been
      seen.
  
      :param action:
          action to be added to message queue
      :param act_id:
          an identifier to check if the action has been seen or to
          mark the action as seen
      :param act_data:
          any data about the given action you may want to record when
          marking it as seen
      """
      if act_id not in self.acted_packets:
          self.acted_packets[act_id] = act_data
          self.msg_queue.put(action)
  
file_path: ParlAI/parlai/chat_service/core/agents.py
imports: import time
  from abc import ABC, abstractmethod
  from queue import Queue
  from parlai.core.agents import Agent
label_desc: Use image node_id 7 for calling the ChatServiceAgent obj's underlying member method code with example usage: obj._queue_action(action, act_id, act_data) without return types