Package dev.langchain4j.agentic.observability
package dev.langchain4j.agentic.observability
-
ClassDescriptionA listener invoked when an update event is received from an A2A streaming client.Represents the outcome returned by an A2A (agent-to-agent) streaming client listener.Notifies an event fired by the AI Service of an LLM-based agent, like a request sent to the model, the response received from it or the execution of a tool, together with the agent that the AI Service belongs to.Listener interface for monitoring agent invocations.Monitors agent executions and provides observability for the LangChain4j Agentic system.The outcome of an agent invocation, reported to
AgentListener.afterAgentInvocation(AgentResponse).Notifies that an agent was skipped instead of being invoked, either because its activation condition was false or because it is optional and one of its arguments was missing.Generates HTML reports for agent executions.Interface that agent service interfaces can extend to automatically register anAgentMonitoras a listener.Represents a monitored execution of an agentic system, tracking the top-level agent invocation and any other nested invocations, along with all the invocation currently in progress and any errors that occur during execution.The token usage and the model name of the response of a model called by the planner of an agent, like the one a supervisor asks which subagent to invoke next or the decision model of a decision router, reported toAgentListener.onPlannerModelResponse(PlannerModelResponse)when the planner receives that response.