Executes the web scraping process and returns the answer to the prompt.
(self)
| 93 | ) |
| 94 | |
| 95 | def run(self) -> str: |
| 96 | """ |
| 97 | Executes the web scraping process and returns the answer to the prompt. |
| 98 | """ |
| 99 | |
| 100 | inputs = {"user_prompt": self.prompt, self.input_key: self.source} |
| 101 | self.final_state, self.execution_info = self.graph.execute(inputs) |
| 102 | |
| 103 | return self.final_state.get("answer", "No answer found.") |