Class SpringBeanToolCallbackResolver
java.lang.Object
org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver
- All Implemented Interfaces:
ToolCallbackResolver
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 Classes -
Constructor Summary
ConstructorsConstructorDescriptionSpringBeanToolCallbackResolver
(org.springframework.context.support.GenericApplicationContext applicationContext, SchemaType schemaType) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Resolve theFunctionCallback
for the given tool name.
-
Constructor Details
-
SpringBeanToolCallbackResolver
public SpringBeanToolCallbackResolver(org.springframework.context.support.GenericApplicationContext applicationContext, @Nullable SchemaType schemaType)
-
-
Method Details
-
resolve
Description copied from interface:ToolCallbackResolver
Resolve theFunctionCallback
for the given tool name.- Specified by:
resolve
in interfaceToolCallbackResolver
-
getSchemaType
-
builder
-