Class ChatModelObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
dev.langchain4j.observation.context.ChatModelObservationContext
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
public class ChatModelObservationContext
extends io.micrometer.observation.Observation.Context
-
Constructor Summary
ConstructorsConstructorDescriptionChatModelObservationContext(dev.langchain4j.model.chat.listener.ChatModelRequestContext requestContext, dev.langchain4j.model.chat.listener.ChatModelResponseContext responseContext, dev.langchain4j.model.chat.listener.ChatModelErrorContext errorContext) -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.listener.ChatModelErrorContextdev.langchain4j.model.chat.listener.ChatModelRequestContextdev.langchain4j.model.chat.listener.ChatModelResponseContextvoidsetErrorContext(dev.langchain4j.model.chat.listener.ChatModelErrorContext errorContext) voidsetResponseContext(dev.langchain4j.model.chat.listener.ChatModelResponseContext responseContext) Methods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Constructor Details
-
ChatModelObservationContext
public ChatModelObservationContext(dev.langchain4j.model.chat.listener.ChatModelRequestContext requestContext, dev.langchain4j.model.chat.listener.ChatModelResponseContext responseContext, dev.langchain4j.model.chat.listener.ChatModelErrorContext errorContext)
-
-
Method Details
-
getRequestContext
public dev.langchain4j.model.chat.listener.ChatModelRequestContext getRequestContext() -
getResponseContext
public dev.langchain4j.model.chat.listener.ChatModelResponseContext getResponseContext() -
setResponseContext
public void setResponseContext(dev.langchain4j.model.chat.listener.ChatModelResponseContext responseContext) -
getErrorContext
public dev.langchain4j.model.chat.listener.ChatModelErrorContext getErrorContext() -
setErrorContext
public void setErrorContext(dev.langchain4j.model.chat.listener.ChatModelErrorContext errorContext)
-