add_history_to_context=True requires some time

I’m using a Team with three agents. I want to provide query history as context, so I’m using it as follows. When I receive a response to the first question and immediately ask the second question, the first question isn’t inserted into the context. I have to wait a bit (over 30 sec.) before asking the second question for it to work as intended. It seems like I need to wait for the time it takes to save to the database. Could I have misconfigured something? Or is this an Agno issue?

db = RedisDb(db_url=“…”)

Team(

determine_input_for_members=False,
respond_directly=True,
description=description,
instructions=instructions,
add_datetime_to_context=True,
share_member_interactions=True,
show_members_responses=True,
markdown=True,
enable_user_memories=True,
add_history_to_context=True,
db=db,
debug_mode=True,
)

All Agents have enable_user_memories=True, add_history_to_context=True, db=db, also.

And I’m using team.arun method.

Agno version : v2.0.8

Hey @judory, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!

1 Like