Record Class OpenAiBatchInput.SingleRequest
java.lang.Object
java.lang.Record
com.sap.ai.sdk.foundationmodels.openai.OpenAiBatchInput.SingleRequest
- Record Components:
customId- a custom identifier for the request, used for tracking in batch processingmethod- the HTTP method for the request, e.g., "POST"url- the endpoint URL for the request, e.g., "/v1/chat/completions"body- the body of the request, which is a CreateChatCompletionRequest
- Enclosing class:
OpenAiBatchInput
public static record OpenAiBatchInput.SingleRequest(String customId, String method, String url, CreateChatCompletionRequest body)
extends Record
Represents a single batch request in OpenAI batch format.
- Since:
- 1.20.0
-
Constructor Summary
ConstructorsConstructorDescriptionSingleRequest(String customId, String method, String url, CreateChatCompletionRequest body) Creates an instance of aSingleRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.customId()Returns the value of thecustomIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Method Details
-
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). -
customId
Returns the value of thecustomIdrecord component.- Returns:
- the value of the
customIdrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-