class_docstr: Subclass BlenderBot2RagAgent to provide MemoryModel with appropriate inputs
  (specifically, memory vectors).
class_docstr_tok: ["Subclass","BlenderBot2RagAgent","to","provide","MemoryModel","with","appropriate","inputs","(","specifically",",","memory","vectors",")","."]
docstr: Add Memory Agent Args.
docstr_tok: ["Add","Memory","Agent","Args","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add Memory Agent Args.
      """
      BlenderBot2RagAgent.add_cmdline_args(parser, partial_opt)
      mbot_group = parser.add_argument_group("Memory Agent Args")
      mbot_group.set_defaults(
          knowledge_access_method=KnowledgeAccessMethod.MEMORY_ONLY.value
      )
      mbot_group.set_defaults(memory_key="full_text")
      mbot_group.add_argument(
          "--memory-extractor-phrases",
          type=str,
          default=None,
          help="phrases (separated by ,) used to extract memories from dialogue context. "
          "For example, set to 'your persona:' to limit memories to only lines that "
          "contain 'your persona:'",
      )
      mbot_group.add_argument(
          "--retriever-ignore-phrases",
          type=str,
          default=None,
          help="filter input to the retriever such that any utterance containing "
          "the phrases (separated by ,) will not be given as input.",
      )
      mbot_group.add_argument(
          "--memory-delimiter",
          type=str,
          default=None,
          help="memory delimiter",
      )
      return parser
  
imports: from typing import Optional, Union
  from parlai.core.message import Message
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from projects.blenderbot2.agents.sub_modules import KnowledgeAccessMethod
  from projects.blenderbot2.agents.modules import T5BlenderBot2RagModel, BlenderBot2RagModel, T5BlenderBot2FidModel, BlenderBot2FidModel, BlenderBot2FidModelMixin
  import torch
  from projects.blenderbot2.agents.blenderbot2 import BlenderBot2RagAgent
  from .long_rag import LongRagAgent, LongRagModel, LongFidAgent, LongFidModel
label_desc: Use image node_id 1 for calling the MemoryRagAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser