Step_callback is not working on Agent Class

I wanted to have a callback on each of the agent steps. However, when i try to specify the step_callback in the Agent parameters, it does nothing. I am on latest version 0.76.9

def on_task_complete(step_output):
print(f"Step Output:{step_output}")

Create an agent

agent = Agent(
role=“Data Collector”,
goal=“Collect and summarize data”,
backstory=“You are a skilled data collector focusing on efficiency.”,
memory=True,
verbose=True,
step_callback=on_task_complete
)