Record Class HtmlReportGenerator
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.observability.HtmlReportGenerator
public record HtmlReportGenerator(AgentMonitor monitor, AgentInstance rootAgent, Object memoryId)
extends Record
Generates HTML reports for agent executions.
This class has been vibe-coded and is not expected to be maintainable manually by a human without LLM's help.
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlReportGenerator(AgentMonitor monitor, AgentInstance rootAgent, Object memoryId) Creates an instance of aHtmlReportGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static StringgenerateReport(AgentMonitor monitor) static StringgenerateReport(AgentMonitor monitor, Object memoryId) static voidgenerateReport(AgentMonitor monitor, Object memoryId, Path path) static voidgenerateReport(AgentMonitor monitor, Path path) static StringgenerateTopology(Object rootAgent) static voidgenerateTopology(Object rootAgent, Path path) final inthashCode()Returns a hash code value for this object.memoryId()Returns the value of thememoryIdrecord component.monitor()Returns the value of themonitorrecord component.Returns the value of therootAgentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HtmlReportGenerator
Creates an instance of aHtmlReportGeneratorrecord class.- Parameters:
monitor- the value for themonitorrecord componentrootAgent- the value for therootAgentrecord componentmemoryId- the value for thememoryIdrecord component
-
-
Method Details
-
generateTopology
-
generateTopology
-
generateReport
-
generateReport
-
generateReport
-
generateReport
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
monitor
Returns the value of themonitorrecord component.- Returns:
- the value of the
monitorrecord component
-
rootAgent
Returns the value of therootAgentrecord component.- Returns:
- the value of the
rootAgentrecord component
-
memoryId
Returns the value of thememoryIdrecord component.- Returns:
- the value of the
memoryIdrecord component
-