接口 ToolExecutionContextProvider

函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@Deprecated @FunctionalInterface public interface ToolExecutionContextProvider
已过时。
Part of the ToolExecutionContext layer which is superseded by RuntimeContext.
  • 方法概要

    修饰符和类型
    方法
    说明
    <T> T
    resolveContext(Class<T> targetType)
    已过时。
    Resolves a context instance of the specified type.
  • 方法详细资料

    • resolveContext

      <T> T resolveContext(Class<T> targetType)
      已过时。
      Resolves a context instance of the specified type.

      This method is called by the framework when a tool method parameter requires context injection but no explicit context was provided at the call site. The implementation should attempt to resolve the context from its managed source (Spring container, ThreadLocal, etc.) and return an instance of the requested type.

      类型参数:
      T - The target type
      参数:
      targetType - The target type to resolve (ToolExecutionContext or custom POJO)
      返回:
      The resolved context instance, or null if not available