Package com.openai.models
Class RunStep.StepDetails
-
- All Implemented Interfaces:
public final class RunStep.StepDetails
The details of the run step.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
RunStep.StepDetails.Visitor
An interface that defines how to map each variant of StepDetails to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<MessageCreationStepDetails>
messageCreation()
Details of the message creation by the run step. final Optional<ToolCallsStepDetails>
toolCalls()
Details of the tool call. final Boolean
isMessageCreation()
final Boolean
isToolCalls()
final MessageCreationStepDetails
asMessageCreation()
Details of the message creation by the run step. final ToolCallsStepDetails
asToolCalls()
Details of the tool call. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(RunStep.StepDetails.Visitor<T> visitor)
final RunStep.StepDetails
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunStep.StepDetails
ofMessageCreation(MessageCreationStepDetails messageCreation)
Details of the message creation by the run step. final static RunStep.StepDetails
ofToolCalls(ToolCallsStepDetails toolCalls)
Details of the tool call. -
-
Method Detail
-
messageCreation
final Optional<MessageCreationStepDetails> messageCreation()
Details of the message creation by the run step.
-
toolCalls
final Optional<ToolCallsStepDetails> toolCalls()
Details of the tool call.
-
isMessageCreation
final Boolean isMessageCreation()
-
isToolCalls
final Boolean isToolCalls()
-
asMessageCreation
final MessageCreationStepDetails asMessageCreation()
Details of the message creation by the run step.
-
asToolCalls
final ToolCallsStepDetails asToolCalls()
Details of the tool call.
-
accept
final <T extends Any> T accept(RunStep.StepDetails.Visitor<T> visitor)
-
validate
final RunStep.StepDetails validate()
-
ofMessageCreation
final static RunStep.StepDetails ofMessageCreation(MessageCreationStepDetails messageCreation)
Details of the message creation by the run step.
-
ofToolCalls
final static RunStep.StepDetails ofToolCalls(ToolCallsStepDetails toolCalls)
Details of the tool call.
-
-
-
-