Load response when loading iteration
This commit is contained in:
@@ -304,10 +304,12 @@ class Api:
|
||||
if not content:
|
||||
return web.Response(status=400, text="Missing content in request body")
|
||||
|
||||
entries = IterationParser.parse_iteration(content, self._work_dir, self._io_buffer)
|
||||
(context, response, entries) = IterationParser.parse_iteration(content, self._work_dir, self._io_buffer)
|
||||
|
||||
for entry in entries:
|
||||
self._working_memory.add_entry(entry)
|
||||
self._agent.modify_context(context, True)
|
||||
self._agent.response_buffer.set_text(response)
|
||||
|
||||
return web.Response(status=200)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user