Class StreamingRagAssistantAutoConfiguration
java.lang.Object
ai.yda.framework.assistant.rag.autoconfigure.StreamingRagAssistantAutoConfiguration
Autoconfiguration class for setting up a
StreamingRagAssistant bean. This class is responsible for
automatically configuring a StreamingRagAssistant instance within the Spring application context. The
StreamingRagAssistant bean is created using a provided StreamingRag instance, which is injected as a
dependency. The configuration is applied automatically when the application starts, thanks to the
AutoConfiguration annotation.
This setup allows the StreamingRagAssistant to be readily available for use in the application wherever it's
needed, without requiring manual bean configuration.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionai.yda.framework.core.assistant.StreamingRagAssistantstreamingRagAssistant(ai.yda.framework.rag.core.StreamingRag<ai.yda.framework.rag.core.model.RagRequest, ai.yda.framework.rag.core.model.RagResponse> rag) Creates and configures aStreamingRagAssistantbean in the Spring application context.
-
Constructor Details
-
StreamingRagAssistantAutoConfiguration
public StreamingRagAssistantAutoConfiguration()Default constructor forStreamingRagAssistantAutoConfiguration.
-
-
Method Details
-
streamingRagAssistant
@Bean public ai.yda.framework.core.assistant.StreamingRagAssistant streamingRagAssistant(ai.yda.framework.rag.core.StreamingRag<ai.yda.framework.rag.core.model.RagRequest, ai.yda.framework.rag.core.model.RagResponse> rag) Creates and configures aStreamingRagAssistantbean in the Spring application context.- Parameters:
rag- theStreamingRaginstance used by theStreamingRagAssistantto perform its operations. This parameter is expected to be provided by the application or other autoconfiguration.- Returns:
- a configured
StreamingRagAssistantbean.
-