Skip to content

Commit

Permalink
fixing issue in stm context window
Browse files Browse the repository at this point in the history
  • Loading branch information
TransformerOptimus committed Jul 8, 2023
1 parent 65ee1b7 commit a7e49f6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions superagi/agent/super_agi.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,9 @@ def from_llm_and_tools(
)

def fetch_agent_feeds(self, session, agent_execution_id, agent_id):
memory_window = session.query(AgentConfiguration).filter(
AgentConfiguration.key == "memory_window",
AgentConfiguration.agent_id == agent_id
).order_by(desc(AgentConfiguration.updated_at)).first().value

agent_feeds = session.query(AgentExecutionFeed.role, AgentExecutionFeed.feed) \
.filter(AgentExecutionFeed.agent_execution_id == agent_execution_id) \
.order_by(asc(AgentExecutionFeed.created_at)) \
.limit(memory_window) \
.all()
return agent_feeds[2:]

Expand Down

0 comments on commit a7e49f6

Please sign in to comment.