Create configuration from parsed arguments.
(cls, args: argparse.Namespace)
| 137 | @property |
| 138 | def doc_type(self) -> str | None: |
| 139 | """Get documentation type from agent instructions.""" |
| 140 | if self.agent_instructions: |
| 141 | return self.agent_instructions.get("doc_type") |
| 142 | return None |
| 143 | |
| 144 | @property |
| 145 | def custom_instructions(self) -> str | None: |
| 146 | """Get custom instructions from agent instructions.""" |
| 147 | if self.agent_instructions: |
| 148 | return self.agent_instructions.get("custom_instructions") |
| 149 | return None |
| 150 | |
| 151 | def get_prompt_addition(self) -> str: |
| 152 | """Generate prompt additions based on agent instructions.""" |
| 153 | if not self.agent_instructions: |
| 154 | return "" |
| 155 | |
| 156 | additions = [] |
| 157 | |
| 158 | if self.doc_type: |
no outgoing calls
no test coverage detected