Interface AgentListener
- All Known Implementing Classes:
AgentMonitor, ComposedAgentListener
public interface AgentListener
Listener interface for monitoring agent invocations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterAgenticScopeCreated(AgenticScope agenticScope) default voidafterAgentInvocation(AgentResponse agentResponse) default voidbeforeAgenticScopeDestroyed(AgenticScope agenticScope) default voidbeforeAgentInvocation(AgentRequest agentRequest) default booleanIndicates whether this listener should be used only to the agent where it is registered (default) or also inherited by its subagents.default voidonAgentInvocationError(AgentInvocationError agentInvocationError)
-
Method Details
-
beforeAgentInvocation
-
afterAgentInvocation
-
onAgentInvocationError
-
afterAgenticScopeCreated
-
beforeAgenticScopeDestroyed
-
inheritedBySubagents
default boolean inheritedBySubagents()Indicates whether this listener should be used only to the agent where it is registered (default) or also inherited by its subagents.- Returns:
- true if the listener should be inherited by sub-agents, false otherwise
-