Start in context approval state

This commit is contained in:
2024-11-02 12:49:39 +01:00
parent 1974769eb4
commit a58ee40c2c
2 changed files with 15 additions and 6 deletions

View File

@@ -45,14 +45,14 @@ class WebAgent(BaseAgent):
Initialize web agent with required components.
"""
super().__init__(action_schema, working_memory, system_metrics, llm, validator, parser)
self.context = ""
self.response = ""
self._system_prompt = system_prompt
self._current_state = WebAgentState.UPDATE
self._current_state = WebAgentState.CONTEXT_APPROVAL
self._validation_error: Optional[str] = None
self._state_change_handlers: List[Callable[[WebAgentState], None]] = []
self._response_change_handlers: List[Callable[[str], None]] = []
self._command_result: Optional[CommandResult] = None
self.context = self._compile_context()
@property