Class ChatRequestOptions
java.lang.Object
dev.langchain4j.model.chat.ChatRequestOptions
Options that accompany a
ChatRequest through the
ChatModel.chat(ChatRequest, ChatRequestOptions) or
StreamingChatModel.chat(ChatRequest, ChatRequestOptions, StreamingChatResponseHandler)
invocation.
These options are not sent to the LLM provider; they are purely for the LangChain4j invocation chain (listeners, hooks, etc.).
- Since:
- 1.13.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatRequestOptions.Builderbuilder()booleaninthashCode()Returns theInvocationContext.invocationId()of the AI Service invocation in which this call is made, whichChatModelListeners get asinvocationId(), ornullif it was not set.toString()
-
Field Details
-
EMPTY
-
-
Method Details
-
listenerAttributes
-
invocationId
Returns theInvocationContext.invocationId()of the AI Service invocation in which this call is made, whichChatModelListeners get asinvocationId(), ornullif it was not set.- Since:
- 1.24.0
-
builder
-
equals
-
hashCode
-
toString
-