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.
- Author:
- Christian Tzolov, Grogdunn
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FunctionCallbackContextDeprecated, 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.protected final Map<String,FunctionCallback> 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.protected static final booleanDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFunctionCallSupport(FunctionCallbackContext functionCallbackContext) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected RespcallWithFunctionSupport(Req request) Deprecated, for removal: This API element is subject to removal in a future version.protected reactor.core.publisher.Flux<Resp>callWithFunctionSupportStream(Req request) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract RespdoChatCompletion(Req request) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract reactor.core.publisher.Flux<Resp>doChatCompletionStream(Req request) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract ReqdoCreateToolResponseRequest(Req previousRequest, Msg responseMessage, List<Msg> conversationHistory) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract MsgdoGetToolResponseMessage(Resp response) Deprecated, for removal: This API element is subject to removal in a future version.doGetUserMessages(Req request) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.handleFunctionCallbackConfigurations(FunctionCallingOptions options, boolean isRuntimeCall) Deprecated, for removal: This API element is subject to removal in a future version.protected ResphandleFunctionCallOrReturn(Req request, Resp response) Deprecated, for removal: This API element is subject to removal in a future version.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.protected abstract booleanisToolFunctionCall(Resp response) Deprecated, for removal: This API element is subject to removal in a future version.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.
-
Field Details
-
IS_RUNTIME_CALL
protected static final boolean IS_RUNTIME_CALLDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
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
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
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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
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
Deprecated, for removal: This API element is subject to removal in a future version. -
handleFunctionCallOrReturn
Deprecated, for removal: This API element is subject to removal in a future version. -
callWithFunctionSupportStream
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
Deprecated, for removal: This API element is subject to removal in a future version. -
doGetToolResponseMessage
Deprecated, for removal: This API element is subject to removal in a future version. -
doChatCompletion
Deprecated, for removal: This API element is subject to removal in a future version. -
doChatCompletionStream
Deprecated, for removal: This API element is subject to removal in a future version. -
isToolFunctionCall
Deprecated, for removal: This API element is subject to removal in a future version.
-
AbstractToolCallSupport