Interface AgentListener

All Known Implementing Classes:
AgentMonitor, ComposedAgentListener

public interface AgentListener
Listener interface for monitoring agent invocations.
  • Method Details

    • beforeAgentInvocation

      default void beforeAgentInvocation(AgentRequest agentRequest)
    • afterAgentInvocation

      default void afterAgentInvocation(AgentResponse agentResponse)
    • onAgentInvocationError

      default void onAgentInvocationError(AgentInvocationError agentInvocationError)
    • afterAgenticScopeCreated

      default void afterAgenticScopeCreated(AgenticScope agenticScope)
    • beforeAgenticScopeDestroyed

      default void beforeAgenticScopeDestroyed(AgenticScope agenticScope)
    • 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