Class MonitoredExecution

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

public class MonitoredExecution extends Object
Represents a monitored execution of an agentic system, tracking the top-level agent invocation and any other nested invocations, along with all the invocation currently in progress and any errors that occur during execution.
  • Method Details

    • ongoingInvocations

      public Collection<AgentInvocation> ongoingInvocations()
    • done

      public boolean done()
    • hasError

      public boolean hasError()
    • error

      public AgentInvocationError error()
    • topLevelInvocations

      public AgentInvocation topLevelInvocations()
    • memoryId

      public Object memoryId()
      Returns the memory ID that identifies the session this execution belongs to.
    • agenticScope

      public AgenticScope agenticScope()
    • toString

      public String toString()
      Overrides:
      toString in class Object