Interface SupplierParameterResolver
public interface SupplierParameterResolver
SPI for resolving parameters of static supplier methods from external sources
such as a dependency injection container.
Applies to all supplier annotations: ChatModelSupplier,
StreamingChatModelSupplier, ContentRetrieverSupplier,
RetrievalAugmentorSupplier, ChatMemorySupplier,
ChatMemoryProviderSupplier, ToolProviderSupplier,
ToolsSupplier, and AgentListenerSupplier.
Implementations are registered via DeclarativeUtil.addSupplierParameterResolver(SupplierParameterResolver).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionresolve(SupplierParameterResolver.Context context) Called at invocation time to obtain the actual value.booleanCalled once per parameter at agent creation time to pre-determine which parameters this resolver handles.
-
Method Details
-
supports
Called once per parameter at agent creation time to pre-determine which parameters this resolver handles. -
resolve
Called at invocation time to obtain the actual value.
-