Record Class AiServiceMethodCreateInfo.ResponseSchemaInfo
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodCreateInfo.ResponseSchemaInfo
- Enclosing class:
AiServiceMethodCreateInfo
-
Constructor Summary
ConstructorsConstructorDescriptionResponseSchemaInfo
(boolean enabled, boolean isInSystemMessage, Optional<Boolean> isInUserMessage, String outputFormatInstructions, Optional<dev.langchain4j.model.chat.request.json.JsonSchema> structuredOutputSchema) Creates an instance of aResponseSchemaInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisInSystemMessage
record component.Returns the value of theisInUserMessage
record component.of
(boolean enabled, Optional<AiServiceMethodCreateInfo.TemplateInfo> systemMessageInfo, Optional<AiServiceMethodCreateInfo.TemplateInfo> userMessageInfo, String outputFormatInstructions, Optional<dev.langchain4j.model.chat.request.json.JsonSchema> structuredOutputSchema) Returns the value of theoutputFormatInstructions
record component.Optional
<dev.langchain4j.model.chat.request.json.JsonSchema> Returns the value of thestructuredOutputSchema
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ResponseSchemaInfo
public ResponseSchemaInfo(boolean enabled, boolean isInSystemMessage, Optional<Boolean> isInUserMessage, String outputFormatInstructions, Optional<dev.langchain4j.model.chat.request.json.JsonSchema> structuredOutputSchema) Creates an instance of aResponseSchemaInfo
record class.- Parameters:
enabled
- the value for theenabled
record componentisInSystemMessage
- the value for theisInSystemMessage
record componentisInUserMessage
- the value for theisInUserMessage
record componentoutputFormatInstructions
- the value for theoutputFormatInstructions
record componentstructuredOutputSchema
- the value for thestructuredOutputSchema
record component
-
-
Method Details
-
of
public static AiServiceMethodCreateInfo.ResponseSchemaInfo of(boolean enabled, Optional<AiServiceMethodCreateInfo.TemplateInfo> systemMessageInfo, Optional<AiServiceMethodCreateInfo.TemplateInfo> userMessageInfo, String outputFormatInstructions, Optional<dev.langchain4j.model.chat.request.json.JsonSchema> structuredOutputSchema) -
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
isInSystemMessage
public boolean isInSystemMessage()Returns the value of theisInSystemMessage
record component.- Returns:
- the value of the
isInSystemMessage
record component
-
isInUserMessage
-
outputFormatInstructions
Returns the value of theoutputFormatInstructions
record component.- Returns:
- the value of the
outputFormatInstructions
record component
-
structuredOutputSchema
Returns the value of thestructuredOutputSchema
record component.- Returns:
- the value of the
structuredOutputSchema
record component
-