Class AgentMonitor

java.lang.Object
dev.langchain4j.agentic.observability.AgentMonitor
All Implemented Interfaces:
AgentListener

public class AgentMonitor extends Object implements AgentListener
Monitors agent executions and provides observability for the LangChain4j Agentic system. Generates a self-contained HTML report visualizing the static topology of an agentic system and the dynamic execution traces.

The report includes:

  • A visual tree chart of the agent hierarchy showing topology types, names, and properties
  • A waterfall timeline of execution traces grouped by memory/session ID