in python/src/tablestore_for_agent_memory/memory/memory_store.py [0:0]
def _config_batch_size(batch_size: Optional[int], max_count: Optional[int], metadata_filter: Optional[Filter]) -> Optional[int]:
if (batch_size is None or batch_size < 1) and (max_count is not None and max_count > 0):
if metadata_filter is None:
return max(min(5000, max_count), 1)
else:
return max(min(5000, int(max_count * 1.3)), 1)
return batch_size