Class ServiceOutputParser
java.lang.Object
dev.langchain4j.service.output.ServiceOutputParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisReturnedAsIs(Class<?> type) Whether the given raw class is a LangChain4j type (e.g.jsonSchema(Type returnType) outputFormatInstructions(Type returnType) parse(ChatResponse chatResponse, Type returnType)
-
Constructor Details
-
ServiceOutputParser
public ServiceOutputParser()
-
-
Method Details
-
parse
-
parseText
-
jsonSchema
-
outputFormatInstructions
-
isReturnedAsIs
Whether the given raw class is a LangChain4j type (e.g.ChatResponse) that AI Services take from the model response themselves, without asking the LLM to produce it. For such types, no output format instructions and no JSON schema are sent to the LLM. Image return types are detected separately.
-