How to detect tool calls in graph, and perform certain actions?

Hi, I am working on with livekit and langgraph and building conversation agent.
is there a way to know which tool started to execute and completed it execution, I wannted to trigger some voices based on that.

Yes, tool calls can be detected with the following

In the AIMessage output, it will have a “tool_call” property. Similarly, after the AIMessage there will be a ToolMessage added to the message history

See an example here: 2. Add tools