Class AgentAiServiceEvent

java.lang.Object
dev.langchain4j.agentic.observability.AgentAiServiceEvent

public final class AgentAiServiceEvent extends Object
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.
  • Constructor Details

    • AgentAiServiceEvent

      public AgentAiServiceEvent(AgentInstance agent, AiServiceEvent aiServiceEvent)
      Parameters:
      agent - the agent whose AI Service fired the event
      aiServiceEvent - the event fired by the AI Service
  • Method Details