(self)
| 79 | self.bind_target(self.ip_addr, self.target) |
| 80 | |
| 81 | def initial_state(self) -> WorkflowState: |
| 82 | try: |
| 83 | from langchain_core.messages import HumanMessage |
| 84 | |
| 85 | initial_message: Any = HumanMessage(content=self.problem) |
| 86 | except ImportError: |
| 87 | initial_message = self.problem |
| 88 | return { |
| 89 | "message": [initial_message], |
| 90 | "sender": "System", |
| 91 | "vulns": [], |
| 92 | "check_count": 0, |
| 93 | } |
| 94 | |
| 95 | def _workflow_config(self) -> WorkflowConfig: |
| 96 | if self.config is None: |