Check if all fields are empty/None.
(self)
| 68 | if self.language: |
| 69 | result["language"] = self.language |
| 70 | return result |
| 71 | |
| 72 | @classmethod |
| 73 | def from_dict(cls, data: dict) -> "AgentInstructions": |
| 74 | """Create AgentInstructions from dictionary.""" |
| 75 | return cls( |
| 76 | include_patterns=data.get("include_patterns"), |
| 77 | exclude_patterns=data.get("exclude_patterns"), |
| 78 | focus_modules=data.get("focus_modules"), |
| 79 | doc_type=data.get("doc_type"), |
| 80 | custom_instructions=data.get("custom_instructions"), |
| 81 | artifact_exclude=data.get("artifact_exclude"), |
no outgoing calls
no test coverage detected