Class ToolCallReactiveContextHolder
java.lang.Object
com.alibaba.cloud.ai.tool.observation.inner.ToolCallReactiveContextHolder
Copied from upstream
(1.0.0).
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.
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic reactor.util.context.ContextViewstatic voidsetContext(reactor.util.context.ContextView contextView)
-
Constructor Details
-
ToolCallReactiveContextHolder
public ToolCallReactiveContextHolder()
-
-
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()
-