Class RecordingSession
java.lang.Object
dev.langchain4j.test.service.internal.RecordingSession
The AI Service invocations captured by one call of the recorder.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanawaitFinished(long timeoutMillis) Waits until all captured invocations are finished or the timeout elapses.Returns all captured invocations, including those started by another captured invocation.Returns the invocations that were not started by another captured invocation, in the order they started.
-
Method Details
-
topLevelInvocations
Returns the invocations that were not started by another captured invocation, in the order they started. -
invocations
Returns all captured invocations, including those started by another captured invocation. -
unfinishedInvocations
-
anyCancelled
public boolean anyCancelled() -
awaitFinished
Waits until all captured invocations are finished or the timeout elapses.- Returns:
trueif all invocations are finished- Throws:
InterruptedException
-