| 760 | ) |
| 761 | |
| 762 | def to_dict(self) -> dict: |
| 763 | result: dict = {} |
| 764 | result["id"] = self.id |
| 765 | result["name"] = self.name |
| 766 | result["capabilities"] = self.capabilities.to_dict() |
| 767 | if self.policy is not None: |
| 768 | result["policy"] = self.policy.to_dict() |
| 769 | if self.billing is not None: |
| 770 | result["billing"] = self.billing.to_dict() |
| 771 | if self.supported_reasoning_efforts is not None: |
| 772 | result["supportedReasoningEfforts"] = self.supported_reasoning_efforts |
| 773 | if self.default_reasoning_effort is not None: |
| 774 | result["defaultReasoningEffort"] = self.default_reasoning_effort |
| 775 | return result |
| 776 | |
| 777 | |
| 778 | # ============================================================================ |