Class AbstractFunctionCallSupport<Msg,Req,Resp>

java.lang.Object
org.springframework.ai.model.function.AbstractFunctionCallSupport<Msg,Req,Resp>

@Deprecated(since="1.0.0-M2", forRemoval=true) public abstract class AbstractFunctionCallSupport<Msg,Req,Resp> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.0.0-M1 in favor of AbstractToolCallSupport
Author:
Christian Tzolov, Grogdunn
  • Field Details

    • IS_RUNTIME_CALL

      protected static final boolean IS_RUNTIME_CALL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • functionCallbackRegister

      protected final Map<String,FunctionCallback> functionCallbackRegister
      Deprecated, for removal: This API element is subject to removal in a future version.
      The function callback register is used to resolve the function callbacks by name.
    • functionCallbackContext

      protected final FunctionCallbackContext functionCallbackContext
      Deprecated, for removal: This API element is subject to removal in a future version.
      The function callback context is used to resolve the function callbacks by name from the Spring context. It is optional and usually used with Spring auto-configuration.
  • Constructor Details

    • AbstractFunctionCallSupport

      protected AbstractFunctionCallSupport(FunctionCallbackContext functionCallbackContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getFunctionCallbackRegister

      public Map<String,FunctionCallback> getFunctionCallbackRegister()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • handleFunctionCallbackConfigurations

      protected Set<String> handleFunctionCallbackConfigurations(FunctionCallingOptions options, boolean isRuntimeCall)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolveFunctionCallbacks

      protected List<FunctionCallback> resolveFunctionCallbacks(Set<String> functionNames)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Resolve the function callbacks by name. Retrieve them from the registry or try to resolve them from the Application Context.
      Parameters:
      functionNames - Name of function callbacks to retrieve.
      Returns:
      list of resolved FunctionCallbacks.
    • callWithFunctionSupport

      protected Resp callWithFunctionSupport(Req request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • handleFunctionCallOrReturn

      protected Resp handleFunctionCallOrReturn(Req request, Resp response)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • callWithFunctionSupportStream

      protected reactor.core.publisher.Flux<Resp> callWithFunctionSupportStream(Req request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • handleFunctionCallOrReturnStream

      protected reactor.core.publisher.Flux<Resp> handleFunctionCallOrReturnStream(Req request, reactor.core.publisher.Flux<Resp> response)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doCreateToolResponseRequest

      protected abstract Req doCreateToolResponseRequest(Req previousRequest, Msg responseMessage, List<Msg> conversationHistory)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doGetUserMessages

      protected abstract List<Msg> doGetUserMessages(Req request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doGetToolResponseMessage

      protected abstract Msg doGetToolResponseMessage(Resp response)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doChatCompletion

      protected abstract Resp doChatCompletion(Req request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • doChatCompletionStream

      protected abstract reactor.core.publisher.Flux<Resp> doChatCompletionStream(Req request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isToolFunctionCall

      protected abstract boolean isToolFunctionCall(Resp response)
      Deprecated, for removal: This API element is subject to removal in a future version.