Class ToolCallReactiveContextHolder
java.lang.Object
org.springframework.ai.model.tool.internal.ToolCallReactiveContextHolder
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 Summary
Modifier and TypeMethodDescriptionstatic void
static reactor.util.context.ContextView
static void
setContext
(reactor.util.context.ContextView contextView)
-
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()
-