Class DefaultFunctionCallbackResolver
java.lang.Object
org.springframework.ai.model.function.DefaultFunctionCallbackResolver
- All Implemented Interfaces:
FunctionCallbackResolver,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Deprecated
public class DefaultFunctionCallbackResolver
extends Object
implements org.springframework.context.ApplicationContextAware, FunctionCallbackResolver
Deprecated.
A Spring
ApplicationContextAware implementation that provides a way to retrieve
a Function from the Spring context and wrap it into a FunctionCallback.
The name of the function is determined by the bean name.
The description of the function is determined by the following rules:
- Provided as a default description
- Provided as a
@Descriptionannotation on the bean - Provided as a
@JsonClassDescriptionannotation on the input class
- Author:
- Christian Tzolov, Christopher Smith, Sebastien Deleuze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Resolve theFunctionCallbackinstance by its name.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.voidsetSchemaType(FunctionCallback.SchemaType schemaType) Deprecated.
-
Constructor Details
-
DefaultFunctionCallbackResolver
public DefaultFunctionCallbackResolver()Deprecated.
-
-
Method Details
-
setSchemaType
Deprecated. -
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Deprecated.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
resolve
Deprecated.Description copied from interface:FunctionCallbackResolverResolve theFunctionCallbackinstance by its name.- Specified by:
resolvein interfaceFunctionCallbackResolver- Parameters:
beanName- the name of the function to resolve- Returns:
- the
FunctionCallbackinstance
-
SpringBeanToolCallbackResolverinstead.