class_docstr: Example agent.
  
  Implements the interface for TorchGeneratorAgent. The minimum requirement is that it
  implements ``build_model``, but we will want to include additional command line
  parameters.
class_docstr_tok: ["Example","agent",".","Implements","the","interface","for","TorchGeneratorAgent",".","The","minimum","requirement","is","that","it","implements","``","build_model","``",",","but","we","will","want","to","include","additional","command","line","parameters","."]
docstr: Add CLI arguments.
docstr_tok: ["Add","CLI","arguments","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add CLI arguments.
      """
      # Make sure to add all of TorchGeneratorAgent's arguments
      super().add_cmdline_args(parser, partial_opt=partial_opt)
  
      # Add custom arguments only for this model.
      group = parser.add_argument_group("Example TGA Agent")
      group.add_argument(
          "-hid",
          "--hidden-size",
          type=int,
          default=1024,
          help="Hidden size.",
      )
      return parser
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import torch.nn
  import torch.nn.functional
  import parlai.core.torch_generator_agent
label_desc: Use image node_id 1 for calling the Seq2seqAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser