Class ListenerNotifierUtil
java.lang.Object
dev.langchain4j.agentic.observability.ListenerNotifierUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidafterAgenticScopeCreated(AgentListener listener, AgenticScope agenticScope) static voidafterAgentInvocation(AgentListener listener, AgentResponse agentResponse) static voidafterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output) static voidafterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, ChatRequest chatRequest, ChatResponse chatResponse) static voidafterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, DecisionResponse decisionResponse) static voidafterAgentToolExecution(AgentListener listener, AgentInstance agent, ToolExecution toolExecution) static voidagentError(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Throwable error) static voidagentSkipped(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, String reason) static voidbeforeAgenticScopeDestroyed(AgentListener listener, AgenticScope agenticScope) static voidbeforeAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs) static voidbeforeAgentToolExecution(AgentListener listener, AgentInstance agent, BeforeToolExecution beforeToolExecution) static voidonAgentAiServiceEvent(AgentListener listener, AgentInstance agent, AiServiceEvent aiServiceEvent) static voidonAgenticSystemSuspended(AgentListener listener, AgenticScope agenticScope) static voidonPlannerModelResponse(AgentListener listener, PlannerModelResponse plannerModelResponse)
-
Method Details
-
beforeAgentInvocation
public static void beforeAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs) -
afterAgentInvocation
public static void afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output) -
afterAgentInvocation
public static void afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, ChatRequest chatRequest, ChatResponse chatResponse) -
afterAgentInvocation
public static void afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, DecisionResponse decisionResponse) -
afterAgentInvocation
-
agentError
public static void agentError(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Throwable error) -
agentSkipped
public static void agentSkipped(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, String reason) -
beforeAgentToolExecution
public static void beforeAgentToolExecution(AgentListener listener, AgentInstance agent, BeforeToolExecution beforeToolExecution) -
afterAgentToolExecution
public static void afterAgentToolExecution(AgentListener listener, AgentInstance agent, ToolExecution toolExecution) -
onAgentAiServiceEvent
public static void onAgentAiServiceEvent(AgentListener listener, AgentInstance agent, AiServiceEvent aiServiceEvent) -
onPlannerModelResponse
public static void onPlannerModelResponse(AgentListener listener, PlannerModelResponse plannerModelResponse) -
afterAgenticScopeCreated
-
beforeAgenticScopeDestroyed
-
onAgenticSystemSuspended
-