Class ToolCallReactiveContextHolder

java.lang.Object
org.springframework.ai.model.tool.internal.ToolCallReactiveContextHolder

public final class ToolCallReactiveContextHolder extends Object
This class bridges blocking Tools call and the reactive context. When calling tools, it captures the context in a thread local, making it available to re-inject in a nested reactive call.
Since:
1.1.0
Author:
Daniel Garnier-Moiroux
  • Method Details

    • setContext

      public static void setContext(reactor.util.context.ContextView contextView)
    • getContext

      public static reactor.util.context.ContextView getContext()
    • clearContext

      public static void clearContext()