def _get_all_memories(
    memory_component_: agent_components.memory_component.MemoryComponent,
    add_time: bool = True,
    sort_by_time: bool = True,
    constant_score: float = 0.0,
) -> Sequence[memory_lib.MemoryResult]:
  """Returns all memories in the memory bank.

  Args:
    memory_component_: The memory component to retrieve memories from.
    add_time: whether to add time
    sort_by_time: whether to sort by time
    constant_score: assign this score value to each memory
  """
  texts = memory_component_.get_all_memories_as_text(add_time=add_time,
                                                     sort_by_time=sort_by_time)
  return [memory_lib.MemoryResult(text=t, score=constant_score) for t in texts]
Returns all memories in the memory bank.

  Args:
    memory_component_: The memory component to retrieve memories from.
    add_time: whether to add time
    sort_by_time: whether to sort by time
    constant_score: assign this score value to each memory
  
concordia/contrib/components/agent/deprecated/situation_representation_via_narrative.py