(self)
| 666 | return CanvasAction(name, description, input_schema) |
| 667 | |
| 668 | def to_dict(self) -> dict: |
| 669 | result: dict = {} |
| 670 | result["name"] = from_str(self.name) |
| 671 | if self.description is not None: |
| 672 | result["description"] = from_union([from_str, from_none], self.description) |
| 673 | if self.input_schema is not None: |
| 674 | result["inputSchema"] = self.input_schema |
| 675 | return result |
| 676 | |
| 677 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 678 | @dataclass |