Generate prompt additions based on agent instructions.
(self)
| 109 | return self.agent_instructions.get('focus_modules') |
| 110 | return None |
| 111 | |
| 112 | @property |
| 113 | def doc_type(self) -> Optional[str]: |
| 114 | """Get documentation type from agent instructions.""" |
| 115 | if self.agent_instructions: |
| 116 | return self.agent_instructions.get('doc_type') |
| 117 | return None |
| 118 | |
| 119 | @property |
| 120 | def custom_instructions(self) -> Optional[str]: |
| 121 | """Get custom instructions from agent instructions.""" |
| 122 | if self.agent_instructions: |
| 123 | return self.agent_instructions.get('custom_instructions') |
| 124 | return None |
| 125 | |
| 126 | def get_prompt_addition(self) -> str: |
| 127 | """Generate prompt additions based on agent instructions.""" |
| 128 | if not self.agent_instructions: |
| 129 | return "" |
| 130 | |
| 131 | additions = [] |
| 132 | |
| 133 | if self.doc_type: |
| 134 | doc_type_instructions = { |
| 135 | 'api': "Focus on API documentation: endpoints, parameters, return types, and usage examples.", |
| 136 | 'architecture': "Focus on architecture documentation: system design, component relationships, and data flow.", |
| 137 | 'user-guide': "Focus on user guide documentation: how to use features, step-by-step tutorials.", |
| 138 | 'developer': "Focus on developer documentation: code structure, contribution guidelines, and implementation details.", |
| 139 | } |
no outgoing calls
no test coverage detected