docstr: Generate response to last seen observation.
docstr_tok: ["Generate","response","to","last","seen","observation","."]
code: def act(self):
      """
      Generate response to last seen observation.
      """
      self.turns += f"\n{self.getID()}: "
      full_prompt = f"{self.init_prompt}{self.turns}"
      resp = self.query_completion_api(full_prompt)
      resp_txt = resp.choices[0].text
      resp_txt = resp_txt.strip()
      self.turns += f"{resp_txt}"
      return Message(
          {"id": self.getID(), "text": resp_txt, "episode_done": False}
      )
  
file_path: ParlAI/parlai/agents/gpt3/gpt3.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.agents import Agent
  from parlai.core.message import Message
label_desc: Use image node_id 5 for calling the Gpt3Agent obj's underlying member method code with example usage: obj.act() and returns: Message