Record Class CreateRunRequest
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.CreateRunRequest
public record CreateRunRequest(String assistantId, Optional<String> model, Optional<String> instructions, Optional<String> additionalInstructions, Optional<List<CreateMessageRequest>> additionalMessages, Optional<List<Tool>> tools, Optional<Map<String,String>> metadata, Optional<Double> temperature, Optional<Double> topP, Optional<Boolean> stream, Optional<Integer> maxPromptTokens, Optional<Integer> maxCompletionTokens, Optional<TruncationStrategy> truncationStrategy, Optional<AssistantsToolChoice> toolChoice, Optional<Boolean> parallelToolCalls, Optional<AssistantsResponseFormat> responseFormat)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateRunRequest(String assistantId, Optional<String> model, Optional<String> instructions, Optional<String> additionalInstructions, Optional<List<CreateMessageRequest>> additionalMessages, Optional<List<Tool>> tools, Optional<Map<String, String>> metadata, Optional<Double> temperature, Optional<Double> topP, Optional<Boolean> stream, Optional<Integer> maxPromptTokens, Optional<Integer> maxCompletionTokens, Optional<TruncationStrategy> truncationStrategy, Optional<AssistantsToolChoice> toolChoice, Optional<Boolean> parallelToolCalls, Optional<AssistantsResponseFormat> responseFormat) Creates an instance of aCreateRunRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalInstructionsrecord component.Returns the value of theadditionalMessagesrecord component.Returns the value of theassistantIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.Returns the value of themaxCompletionTokensrecord component.Returns the value of themaxPromptTokensrecord component.metadata()Returns the value of themetadatarecord component.model()Returns the value of themodelrecord component.static CreateRunRequest.BuilderReturns the value of theparallelToolCallsrecord component.Returns the value of theresponseFormatrecord component.stream()Returns the value of thestreamrecord component.Returns the value of thetemperaturerecord component.Returns the value of thetoolChoicerecord component.tools()Returns the value of thetoolsrecord component.topP()Returns the value of thetopPrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetruncationStrategyrecord component.
-
Constructor Details
-
CreateRunRequest
public CreateRunRequest(String assistantId, Optional<String> model, Optional<String> instructions, Optional<String> additionalInstructions, Optional<List<CreateMessageRequest>> additionalMessages, Optional<List<Tool>> tools, Optional<Map<String, String>> metadata, Optional<Double> temperature, Optional<Double> topP, Optional<Boolean> stream, Optional<Integer> maxPromptTokens, Optional<Integer> maxCompletionTokens, Optional<TruncationStrategy> truncationStrategy, Optional<AssistantsToolChoice> toolChoice, Optional<Boolean> parallelToolCalls, Optional<AssistantsResponseFormat> responseFormat) Creates an instance of aCreateRunRequestrecord class.- Parameters:
assistantId- the value for theassistantIdrecord componentmodel- the value for themodelrecord componentinstructions- the value for theinstructionsrecord componentadditionalInstructions- the value for theadditionalInstructionsrecord componentadditionalMessages- the value for theadditionalMessagesrecord componenttools- the value for thetoolsrecord componentmetadata- the value for themetadatarecord componenttemperature- the value for thetemperaturerecord componenttopP- the value for thetopPrecord componentstream- the value for thestreamrecord componentmaxPromptTokens- the value for themaxPromptTokensrecord componentmaxCompletionTokens- the value for themaxCompletionTokensrecord componenttruncationStrategy- the value for thetruncationStrategyrecord componenttoolChoice- the value for thetoolChoicerecord componentparallelToolCalls- the value for theparallelToolCallsrecord componentresponseFormat- the value for theresponseFormatrecord component
-
-
Method Details
-
newBuilder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
assistantId
Returns the value of theassistantIdrecord component.- Returns:
- the value of the
assistantIdrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
additionalInstructions
Returns the value of theadditionalInstructionsrecord component.- Returns:
- the value of the
additionalInstructionsrecord component
-
additionalMessages
Returns the value of theadditionalMessagesrecord component.- Returns:
- the value of the
additionalMessagesrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
topP
Returns the value of thetopPrecord component.- Returns:
- the value of the
topPrecord component
-
stream
Returns the value of thestreamrecord component.- Returns:
- the value of the
streamrecord component
-
maxPromptTokens
Returns the value of themaxPromptTokensrecord component.- Returns:
- the value of the
maxPromptTokensrecord component
-
maxCompletionTokens
Returns the value of themaxCompletionTokensrecord component.- Returns:
- the value of the
maxCompletionTokensrecord component
-
truncationStrategy
Returns the value of thetruncationStrategyrecord component.- Returns:
- the value of the
truncationStrategyrecord component
-
toolChoice
Returns the value of thetoolChoicerecord component.- Returns:
- the value of the
toolChoicerecord component
-
parallelToolCalls
Returns the value of theparallelToolCallsrecord component.- Returns:
- the value of the
parallelToolCallsrecord component
-
responseFormat
Returns the value of theresponseFormatrecord component.- Returns:
- the value of the
responseFormatrecord component
-