Skip to content

Commit

Permalink
feat: Updated backend/agent/coding_agent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 29, 2023
1 parent 459d4cf commit 1e0a34a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/agent/coding_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def query(self, input: str, command: Optional[str] = None) -> List[str]:
print(f"Input Text: {input}\nCommand: {command}")
self.memory_manager.add_message("user", input)

if self.memory_manager.working_context.turn_counter == 0:
print("Summarized Context: ", self.memory_manager.working_context.context)

message_history = [
{"role": i["role"], "content": i["content"]}
for i in self.memory_manager.get_messages()
Expand Down

0 comments on commit 1e0a34a

Please sign in to comment.