Skip to content

Commit

Permalink
add more condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Sep 19, 2023
1 parent ac7b7d5 commit d1be8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/agent/agent_message_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _build_ltm_summary(self, past_messages, output_token_limit) -> str:
self.agent_execution_id, "last_agent_feed_ltm_summary_id")
last_agent_feed_ltm_summary_id = (

Check warning on line 103 in superagi/agent/agent_message_builder.py

View check run for this annotation

Codecov / codecov/patch

superagi/agent/agent_message_builder.py#L103

Added line #L103 was not covered by tests
int(last_agent_feed_ltm_summary_id.value)
if last_agent_feed_ltm_summary_id is not None
if last_agent_feed_ltm_summary_id is not None and last_agent_feed_ltm_summary_id.value is not None
else 0
)
past_messages = self.session.query(AgentExecutionFeed.role, AgentExecutionFeed.feed,
Expand Down

0 comments on commit d1be8f9

Please sign in to comment.