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

    Constructors
    Constructor
    Description
    ChatModelObservationContext(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 Type
    Method
    Description
    dev.langchain4j.model.chat.listener.ChatModelErrorContext
     
    dev.langchain4j.model.chat.listener.ChatModelRequestContext
     
    dev.langchain4j.model.chat.listener.ChatModelResponseContext
     
    void
    setErrorContext(dev.langchain4j.model.chat.listener.ChatModelErrorContext errorContext)
     
    void
    setResponseContext(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, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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)