Open a new canvas instance. May raise :class:`CanvasError` to surface a structured failure to the host.
(self, ctx: CanvasProviderOpenRequest)
| 150 | |
| 151 | @abstractmethod |
| 152 | async def on_open(self, ctx: CanvasProviderOpenRequest) -> CanvasProviderOpenResult: |
| 153 | """Open a new canvas instance. |
| 154 | |
| 155 | May raise :class:`CanvasError` to surface a structured failure to |
| 156 | the host. |
| 157 | """ |
| 158 | |
| 159 | async def on_close(self, ctx: CanvasProviderCloseRequest) -> None: |
| 160 | """Canvas was closed by the user or agent. Default: no-op.""" |