Class FleetStreamRestartedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.badmonkey.agentspaces.springai.model.FleetModelException
ai.badmonkey.agentspaces.springai.model.FleetStreamRestartedException
- All Implemented Interfaces:
Serializable
A streamed fleet model call whose server died mid-stream, under the
fail restart policy. The partial text is what the caller already
received; the caller can retry, or keep it.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFleetStreamRestartedException(String requestId, int fromAttempt, int toAttempt, String partialText) Creates the exception. -
Method Summary
Modifier and TypeMethodDescriptionintThe attempt that died.The text emitted before the restart.intThe attempt that took over.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FleetStreamRestartedException
-
-
Method Details
-
partialText
The text emitted before the restart. -
fromAttempt
public int fromAttempt()The attempt that died. -
toAttempt
public int toAttempt()The attempt that took over.
-