Server side implementation for interactive entry edits
This commit is contained in:
@@ -64,10 +64,11 @@ class Main:
|
||||
raise ValueError("No LLM engines enabled in configuration")
|
||||
|
||||
self._io_buffer = WebIOBuffer()
|
||||
self._working_memory = WorkingMemory()
|
||||
self._agent = WebAgent(
|
||||
system_prompt=self._system_prompt,
|
||||
action_schema=self._action_schema,
|
||||
working_memory=WorkingMemory(),
|
||||
working_memory=self._working_memory,
|
||||
metrics=SystemMetrics(),
|
||||
llms=self._llms,
|
||||
validator=XMLValidator(self._action_schema),
|
||||
@@ -77,8 +78,8 @@ class Main:
|
||||
self._auto_approver = AutoApprover(self._agent)
|
||||
|
||||
self._app = web.Application()
|
||||
self._api = Api(self._app, self._agent, self._io_buffer, self._auto_approver)
|
||||
self._websockets = Websockets(self._app, self._agent, self._io_buffer, self._auto_approver)
|
||||
self._api = Api(self._app, self._agent, self._io_buffer, self._working_memory, self._auto_approver)
|
||||
self._websockets = Websockets(self._app, self._agent, self._io_buffer, self._auto_approver, self._working_memory)
|
||||
self._static = Static(self._app, self._config)
|
||||
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user