Class InvocationRecord

java.lang.Object
dev.langchain4j.test.service.internal.InvocationRecord

public final class InvocationRecord extends Object
The events and model calls of one recorded AI Service invocation. Events that arrive after the first completed, error or cancelled event are ignored, and so is an event received a second time.
  • Method Details

    • invocationContext

      public InvocationContext invocationContext()
    • parent

      public InvocationRecord parent()
    • events

      public List<AiServiceEvent> events()
    • children

      public List<InvocationRecord> children()
    • modelCalls

      public List<ModelCallRecord> modelCalls()
      Returns the model calls made for this invocation, in the order they started.
    • isFinished

      public boolean isFinished()
    • isCancelled

      public boolean isCancelled()
    • hasIssuedRequest

      public boolean hasIssuedRequest()
    • lastEvent

      public AiServiceEvent lastEvent()