Hi, I have a question regarding how agent behave in looping scenario. The context is that I have a huge amount of data and since ai model can handle only for a certain context then I clustered the content in the form of around 10k tokens.
Since the agent task is to filter the data, then for each looping scenario it needs to understand the data that has already been filtered previously from the start of it. Here comes the usage of memory, but I’m not sure how the memory node behave when agent is start to run. My question is,
- when agent start to run it always read the chat memory from previous chat (depending on the context window length), means I don’t need to do anything to give agent previous processed data or,
- I need to pass the previous chat directly to agent,
which one of this scenario that is correct?