Skip to content

Commit

Permalink
potential fix for case where task instructions are sometimes not stor…
Browse files Browse the repository at this point in the history
…ed in db
  • Loading branch information
LeonOstrez committed Jul 1, 2024
1 parent c91e535 commit 76e7d37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/agents/developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,11 @@ async def breakdown_current_task(self) -> AgentResponse:
)
response: str = await llm(convo)

# FIXME: check if this is correct, as sqlalchemy can't figure out modifications
# to attributes; however, self.next is not saved yet so maybe this is fine
self.next_state.tasks[current_task_index] = {
**task,
"instructions": response,
}
self.next_state.flag_tasks_as_modified()

await self.send_message("Breaking down the task into steps ...")
convo.assistant(response).template("parse_task").require_schema(TaskSteps)
Expand Down

0 comments on commit 76e7d37

Please sign in to comment.