Interface RunStepStreamEvent.Visitor
-
- All Implemented Interfaces:
public interface RunStepStreamEvent.Visitor<T extends Object>An interface that defines how to map each variant of RunStepStreamEvent to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitThreadRunStepCreated(RunStepStreamEvent.ThreadRunStepCreated threadRunStepCreated)Occurs when a run step is created. abstract TvisitThreadRunStepInProgress(RunStepStreamEvent.ThreadRunStepInProgress threadRunStepInProgress)Occurs when a run step moves to an in_progressstate.abstract TvisitThreadRunStepDelta(RunStepStreamEvent.ThreadRunStepDelta threadRunStepDelta)Occurs when parts of a run step are being streamed. abstract TvisitThreadRunStepCompleted(RunStepStreamEvent.ThreadRunStepCompleted threadRunStepCompleted)Occurs when a run step is completed. abstract TvisitThreadRunStepFailed(RunStepStreamEvent.ThreadRunStepFailed threadRunStepFailed)Occurs when a run step fails. abstract TvisitThreadRunStepCancelled(RunStepStreamEvent.ThreadRunStepCancelled threadRunStepCancelled)Occurs when a run step is cancelled. abstract TvisitThreadRunStepExpired(RunStepStreamEvent.ThreadRunStepExpired threadRunStepExpired)Occurs when a run step expires. Tunknown(JsonValue json)Maps an unknown variant of RunStepStreamEvent to a value of type T. -
-
Method Detail
-
visitThreadRunStepCreated
abstract T visitThreadRunStepCreated(RunStepStreamEvent.ThreadRunStepCreated threadRunStepCreated)
Occurs when a run step is created.
-
visitThreadRunStepInProgress
abstract T visitThreadRunStepInProgress(RunStepStreamEvent.ThreadRunStepInProgress threadRunStepInProgress)
Occurs when a run step moves to an
in_progressstate.
-
visitThreadRunStepDelta
abstract T visitThreadRunStepDelta(RunStepStreamEvent.ThreadRunStepDelta threadRunStepDelta)
Occurs when parts of a run step are being streamed.
-
visitThreadRunStepCompleted
abstract T visitThreadRunStepCompleted(RunStepStreamEvent.ThreadRunStepCompleted threadRunStepCompleted)
Occurs when a run step is completed.
-
visitThreadRunStepFailed
abstract T visitThreadRunStepFailed(RunStepStreamEvent.ThreadRunStepFailed threadRunStepFailed)
Occurs when a run step fails.
-
visitThreadRunStepCancelled
abstract T visitThreadRunStepCancelled(RunStepStreamEvent.ThreadRunStepCancelled threadRunStepCancelled)
Occurs when a run step is cancelled.
-
visitThreadRunStepExpired
abstract T visitThreadRunStepExpired(RunStepStreamEvent.ThreadRunStepExpired threadRunStepExpired)
Occurs when a run step expires.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of RunStepStreamEvent to a value of type T.
An instance of RunStepStreamEvent can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-