(
self, page: Page, client: CDPSession, context: str = '',
)
| 867 | return spaces.Dict({"text": text_space, "image": image_space}) |
| 868 | |
| 869 | def get_observation( |
| 870 | self, page: Page, client: CDPSession, context: str = '', |
| 871 | ) -> dict[str, Observation]: |
| 872 | text_obs = self.text_processor.process(page, client, context) |
| 873 | image_obs = self.image_processor.process(page, client, context) |
| 874 | return {"text": text_obs, "image": image_obs} |
| 875 | |
| 876 | def get_observation_metadata(self) -> dict[str, ObservationMetadata]: |
| 877 | return { |