Class SpringBeanToolCallbackResolver
java.lang.Object
org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- All Implemented Interfaces:
ToolCallbackResolver
@Deprecated(since="2.0.0",
forRemoval=true)
public class SpringBeanToolCallbackResolver
extends Object
implements ToolCallbackResolver
Deprecated, for removal: This API element is subject to removal in a future version.
A Spring
ApplicationContext-based implementation that provides a way to
retrieve a bean from the Spring context and wrap it into a ToolCallback.- Since:
- 1.0.0
- Author:
- Christian Tzolov, Christopher Smith, Sebastien Deleuze, Thomas Vitale
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionSpringBeanToolCallbackResolver(org.springframework.context.support.GenericApplicationContext applicationContext, @Nullable SchemaType schemaType) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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.@Nullable ToolCallbackDeprecated, for removal: This API element is subject to removal in a future version.Resolve theToolCallbackfor the given tool name.
-
Constructor Details
-
SpringBeanToolCallbackResolver
public SpringBeanToolCallbackResolver(org.springframework.context.support.GenericApplicationContext applicationContext, @Nullable SchemaType schemaType) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
resolve
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ToolCallbackResolverResolve theToolCallbackfor the given tool name.- Specified by:
resolvein interfaceToolCallbackResolver
-
getSchemaType
Deprecated, for removal: This API element is subject to removal in a future version. -
builder
Deprecated, for removal: This API element is subject to removal in a future version.
-
ToolCallbackbeans directly and retrieving them via aFunctionToolCallback.