Interface SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
SpringAiChatEndpointBuilderFactory
public static interface SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Spring AI Chat component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()chatClient(String chatClient) The ChatClient instance to use for chat operations.chatClient(org.springframework.ai.chat.client.ChatClient chatClient) The ChatClient instance to use for chat operations.The ChatModel instance to use for chat operations.chatModel(org.springframework.ai.chat.model.ChatModel chatModel) The ChatModel instance to use for chat operations.chatOperation(String chatOperation) The chat operation to perform.chatOperation(org.apache.camel.component.springai.chat.SpringAiChatOperations chatOperation) The chat operation to perform.ragTemplate(String ragTemplate) Template for formatting RAG (Retrieval Augmented Generation) prompts when augmented data is provided.safeguardFailureResponse(String safeguardFailureResponse) Failure response message for SafeGuard advisor when sensitive content is detected.safeguardSensitiveWords(String safeguardSensitiveWords) Comma-separated list of sensitive words for SafeGuard advisor.similarityThreshold(double similarityThreshold) Similarity threshold for RAG retrieval (default: 0.7).similarityThreshold(String similarityThreshold) Similarity threshold for RAG retrieval (default: 0.7).systemMessage(String systemMessage) Default system message to set context for the conversation.Tags for discovering and calling Camel route tools.topK(int topK) Number of top documents to retrieve for RAG (default: 5).Number of top documents to retrieve for RAG (default: 5).userMessage(String userMessage) Default user message text for multimodal requests.vectorStore(String vectorStore) VectorStore for automatic RAG retrieval.vectorStore(org.springframework.ai.vectorstore.VectorStore vectorStore) VectorStore for automatic RAG retrieval.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
chatClient
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder chatClient(org.springframework.ai.chat.client.ChatClient chatClient) The ChatClient instance to use for chat operations. ChatClient provides advanced features like memory management and advisors. If not provided, a ChatClient will be created from the ChatModel. The option is a:org.springframework.ai.chat.client.ChatClienttype. Group: producer- Parameters:
chatClient- the value to set- Returns:
- the dsl builder
-
chatClient
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder chatClient(String chatClient) The ChatClient instance to use for chat operations. ChatClient provides advanced features like memory management and advisors. If not provided, a ChatClient will be created from the ChatModel. The option will be converted to aorg.springframework.ai.chat.client.ChatClienttype. Group: producer- Parameters:
chatClient- the value to set- Returns:
- the dsl builder
-
chatModel
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder chatModel(org.springframework.ai.chat.model.ChatModel chatModel) The ChatModel instance to use for chat operations. This is used to create a ChatClient if one is not explicitly provided. The option is a:org.springframework.ai.chat.model.ChatModeltype. Group: producer- Parameters:
chatModel- the value to set- Returns:
- the dsl builder
-
chatModel
The ChatModel instance to use for chat operations. This is used to create a ChatClient if one is not explicitly provided. The option will be converted to aorg.springframework.ai.chat.model.ChatModeltype. Group: producer- Parameters:
chatModel- the value to set- Returns:
- the dsl builder
-
chatOperation
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder chatOperation(org.apache.camel.component.springai.chat.SpringAiChatOperations chatOperation) The chat operation to perform. The option is a:org.apache.camel.component.springai.chat.SpringAiChatOperationstype. Required: true Default: CHAT_SINGLE_MESSAGE Group: producer- Parameters:
chatOperation- the value to set- Returns:
- the dsl builder
-
chatOperation
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder chatOperation(String chatOperation) The chat operation to perform. The option will be converted to aorg.apache.camel.component.springai.chat.SpringAiChatOperationstype. Required: true Default: CHAT_SINGLE_MESSAGE Group: producer- Parameters:
chatOperation- the value to set- Returns:
- the dsl builder
-
systemMessage
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder systemMessage(String systemMessage) Default system message to set context for the conversation. Can be overridden by the CamelSpringAiChatSystemMessage header. The option is a:java.lang.Stringtype. Group: producer- Parameters:
systemMessage- the value to set- Returns:
- the dsl builder
-
tags
Tags for discovering and calling Camel route tools. The option is a:java.lang.Stringtype. Group: producer- Parameters:
tags- the value to set- Returns:
- the dsl builder
-
userMessage
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder userMessage(String userMessage) Default user message text for multimodal requests. Can be combined with media data in the message body. The option is a:java.lang.Stringtype. Group: producer- Parameters:
userMessage- the value to set- Returns:
- the dsl builder
-
ragTemplate
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder ragTemplate(String ragTemplate) Template for formatting RAG (Retrieval Augmented Generation) prompts when augmented data is provided. The template supports two placeholders: {context} for the retrieved documents and {question} for the user's question. Default template is Context:\n{context}\n\nQuestion: {question}. The option is a:java.lang.Stringtype. Default: Context:\n\{context}\n\nQuestion: \{question} Group: rag- Parameters:
ragTemplate- the value to set- Returns:
- the dsl builder
-
similarityThreshold
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder similarityThreshold(double similarityThreshold) Similarity threshold for RAG retrieval (default: 0.7). The option is a:doubletype. Default: 0.7 Group: rag- Parameters:
similarityThreshold- the value to set- Returns:
- the dsl builder
-
similarityThreshold
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder similarityThreshold(String similarityThreshold) Similarity threshold for RAG retrieval (default: 0.7). The option will be converted to adoubletype. Default: 0.7 Group: rag- Parameters:
similarityThreshold- the value to set- Returns:
- the dsl builder
-
topK
Number of top documents to retrieve for RAG (default: 5). The option is a:inttype. Default: 5 Group: rag- Parameters:
topK- the value to set- Returns:
- the dsl builder
-
topK
Number of top documents to retrieve for RAG (default: 5). The option will be converted to ainttype. Default: 5 Group: rag- Parameters:
topK- the value to set- Returns:
- the dsl builder
-
vectorStore
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder vectorStore(org.springframework.ai.vectorstore.VectorStore vectorStore) VectorStore for automatic RAG retrieval. The option is a:org.springframework.ai.vectorstore.VectorStoretype. Group: rag- Parameters:
vectorStore- the value to set- Returns:
- the dsl builder
-
vectorStore
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder vectorStore(String vectorStore) VectorStore for automatic RAG retrieval. The option will be converted to aorg.springframework.ai.vectorstore.VectorStoretype. Group: rag- Parameters:
vectorStore- the value to set- Returns:
- the dsl builder
-
safeguardFailureResponse
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder safeguardFailureResponse(String safeguardFailureResponse) Failure response message for SafeGuard advisor when sensitive content is detected. If not specified, a default message will be used. The option is a:java.lang.Stringtype. Group: security- Parameters:
safeguardFailureResponse- the value to set- Returns:
- the dsl builder
-
safeguardSensitiveWords
default SpringAiChatEndpointBuilderFactory.SpringAiChatEndpointBuilder safeguardSensitiveWords(String safeguardSensitiveWords) Comma-separated list of sensitive words for SafeGuard advisor. When provided, the SafeGuard advisor will be enabled to prevent generation of content containing these words. The option is a:java.lang.Stringtype. Group: security- Parameters:
safeguardSensitiveWords- the value to set- Returns:
- the dsl builder
-