Class ComposedAgentListener
java.lang.Object
dev.langchain4j.agentic.observability.ComposedAgentListener
- All Implemented Interfaces:
AgentListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(AgentListener listener) voidafterAgenticScopeCreated(AgenticScope agenticScope) voidafterAgentInvocation(AgentResponse agentResponse) voidbeforeAgenticScopeDestroyed(AgenticScope agenticScope) voidbeforeAgentInvocation(AgentRequest agentRequest) static AgentListenercomposeWithInherited(AgentListener localListener, AgentListener parentListener) voidonAgentInvocationError(AgentInvocationError agentInvocationError) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AgentListener
inheritedBySubagents
-
Constructor Details
-
ComposedAgentListener
-
-
Method Details
-
addListener
-
beforeAgentInvocation
- Specified by:
beforeAgentInvocationin interfaceAgentListener
-
afterAgentInvocation
- Specified by:
afterAgentInvocationin interfaceAgentListener
-
onAgentInvocationError
- Specified by:
onAgentInvocationErrorin interfaceAgentListener
-
afterAgenticScopeCreated
- Specified by:
afterAgenticScopeCreatedin interfaceAgentListener
-
beforeAgenticScopeDestroyed
- Specified by:
beforeAgenticScopeDestroyedin interfaceAgentListener
-
composeWithInherited
public static AgentListener composeWithInherited(AgentListener localListener, AgentListener parentListener)
-