MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / initial_state

Method initial_state

workflow/state.py:81–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected