Storing state between tool calls/tasks within a crew

Is there anyway in Crew AI to store/access state between tool calls/agents within a Crew.
I have a workflow with multiple agents for answering user questions:

  • A researcher responsible for finding relevant documents (using various retrieval tools)
  • A grader responsible for filtering irrelevant documents
  • A Writer responsible for constructing an answer
  • An editor responsible for checkin the answer using the original documents as retrieved by the researcher

In this case I would like to store the candidate documents retrieved by the researcher agent in a shared state that can be accessed downstream.

I understand Flows would allow me to pass state between actions, but seems more appropriate for modelling interactions between crews, rather than within a crew