Record Class ResponseFormatSchemas
java.lang.Object
java.lang.Record
io.micronaut.langchain4j.jsonschema.ResponseFormatSchemas
- Record Components:
schemas- The schemas by name
- All Implemented Interfaces:
Function<dev.langchain4j.model.chat.request.ChatRequest, dev.langchain4j.model.chat.request.ChatRequest>, UnaryOperator<dev.langchain4j.model.chat.request.ChatRequest>
@Internal
public record ResponseFormatSchemas(Map<String, dev.langchain4j.model.chat.request.json.JsonSchema> schemas)
extends Record
implements UnaryOperator<dev.langchain4j.model.chat.request.ChatRequest>
The JSON schemas of the structured outputs of one AI service or agent, keyed by the name LangChain4j gives the
schema of the response format (the simple name of the return type, or
List_of_<Type> for a list).
Applied to a ChatRequest, it replaces the schema LangChain4j derived reflectively with the provided one.
-
Constructor Summary
ConstructorsConstructorDescriptionResponseFormatSchemas(Map<String, dev.langchain4j.model.chat.request.json.JsonSchema> schemas) Creates an instance of aResponseFormatSchemasrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.request.ChatRequestapply(dev.langchain4j.model.chat.request.ChatRequest chatRequest) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.schemas()Returns the value of theschemasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResponseFormatSchemas
-
-
Method Details
-
apply
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemas
-