Class ChatClientObservationContext

java.lang.Object
io.micrometer.observation.Observation.Context
org.springframework.ai.chat.client.observation.ChatClientObservationContext
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView

public class ChatClientObservationContext extends io.micrometer.observation.Observation.Context
Context used to store metadata for chat client workflows.
Since:
1.0.0
Author:
Christian Tzolov, Thomas Vitale
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Deprecated.
    not used anymore.
     
     
    boolean
     
    void
    setFormat(String format)
    Deprecated.
    not used anymore.

    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 java.lang.Object

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

    Methods inherited from interface io.micrometer.observation.Observation.ContextView

    getOrDefault
  • Method Details

    • builder

      public static ChatClientObservationContext.Builder builder()
    • getRequest

      public ChatClientRequest getRequest()
    • getOperationMetadata

      public AiOperationMetadata getOperationMetadata()
    • isStream

      public boolean isStream()
    • getFormat

      @Nullable @Deprecated public String getFormat()
      Deprecated.
      not used anymore. The format instructions are already included in the ChatModelObservationContext.
    • setFormat

      @Deprecated public void setFormat(@Nullable String format)
      Deprecated.
      not used anymore. The format instructions are already included in the ChatModelObservationContext.