Class SpringAiChatEndpointBuilderFactory.SpringAiChatHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.SpringAiChatEndpointBuilderFactory.SpringAiChatHeaderNameBuilder
- Enclosing interface:
SpringAiChatEndpointBuilderFactory
The builder of headers' name for the Spring AI Chat component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of custom advisors to add to the request.Augmented data for RAG as List.Conversation ID for managing separate conversation contexts in chat memory.The Java class to use for entity response conversion.The reason why the chat response generation stopped (e.g., STOP, LENGTH, TOOL_CALLS).Maximum file size in bytes for multimodal content.Maximum tokens in the response.Media data for multimodal requests (image or audio).Media type (MIME type) for multimodal requests (e.g., image/png, audio/wav).The name of the AI model used to generate the response.The Java class to use for structured output bean conversion.The output format type for structured output conversion (BEAN, MAP, LIST).The prompt template with placeholders for variable substitution.The response from the chat model.The unique ID of the chat response.Full response metadata as a Map containing all available metadata fields.Failure response message for SafeGuard advisor when sensitive content is detected.Order of execution for SafeGuard advisor.Comma-separated list of sensitive words for SafeGuard advisor.The structured output converted from the chat response.System message for the conversation.Metadata to attach to system messages.Temperature parameter for response randomness (0.0-2.0).Top K parameter for sampling.Top P parameter for nucleus sampling.User message text for multimodal requests.Metadata to attach to user messages.The number of input tokens used.The number of output tokens used.The total number of tokens used.
-
Constructor Details
-
SpringAiChatHeaderNameBuilder
public SpringAiChatHeaderNameBuilder()
-
-
Method Details
-
springAiChatResponse
The response from the chat model. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatResponse.
-
springAiInputTokenCount
The number of input tokens used. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiInputTokenCount.
-
springAiOutputTokenCount
The number of output tokens used. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiOutputTokenCount.
-
springAiTotalTokenCount
The total number of tokens used. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiTotalTokenCount.
-
springAiChatPromptTemplate
The prompt template with placeholders for variable substitution. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatPromptTemplate.
-
springAiChatAugmentedData
Augmented data for RAG as List. The option is a:java.util.List<org.springframework.ai.document.Document>type. Group: producer- Returns:
- the name of the header
SpringAiChatAugmentedData.
-
springAiChatSystemMessage
System message for the conversation. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatSystemMessage.
-
springAiChatTemperature
Temperature parameter for response randomness (0.0-2.0). The option is a:Doubletype. Group: producer- Returns:
- the name of the header
SpringAiChatTemperature.
-
springAiChatMaxTokens
Maximum tokens in the response. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiChatMaxTokens.
-
springAiChatTopP
Top P parameter for nucleus sampling. The option is a:Doubletype. Group: producer- Returns:
- the name of the header
SpringAiChatTopP.
-
springAiChatTopK
Top K parameter for sampling. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiChatTopK.
-
springAiChatUserMessage
User message text for multimodal requests. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatUserMessage.
-
springAiChatMediaData
Media data for multimodal requests (image or audio). The option is a:byte[]type. Group: producer- Returns:
- the name of the header
SpringAiChatMediaData.
-
springAiChatMediaType
Media type (MIME type) for multimodal requests (e.g., image/png, audio/wav). The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatMediaType.
-
springAiChatOutputFormat
The output format type for structured output conversion (BEAN, MAP, LIST). The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatOutputFormat.
-
springAiChatOutputClass
The Java class to use for structured output bean conversion. The option is a:Class<?>type. Group: producer- Returns:
- the name of the header
SpringAiChatOutputClass.
-
springAiChatStructuredOutput
The structured output converted from the chat response. The option is a:Objecttype. Group: producer- Returns:
- the name of the header
SpringAiChatStructuredOutput.
-
springAiChatSafeguardSensitiveWords
Comma-separated list of sensitive words for SafeGuard advisor. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatSafeguardSensitiveWords.
-
springAiChatSafeguardFailureResponse
Failure response message for SafeGuard advisor when sensitive content is detected. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatSafeguardFailureResponse.
-
springAiChatSafeguardOrder
Order of execution for SafeGuard advisor. The option is a:Integertype. Group: producer- Returns:
- the name of the header
SpringAiChatSafeguardOrder.
-
springAiChatAdvisors
List of custom advisors to add to the request. The option is a:java.util.List<org.springframework.ai.chat.client.advisor.api.Advisor>type. Group: producer- Returns:
- the name of the header
SpringAiChatAdvisors.
-
springAiChatEntityClass
The Java class to use for entity response conversion. The option is a:Class<?>type. Group: producer- Returns:
- the name of the header
SpringAiChatEntityClass.
-
springAiChatUserMetadata
Metadata to attach to user messages. The option is a:java.util.Map<String, Object>type. Group: producer- Returns:
- the name of the header
SpringAiChatUserMetadata.
-
springAiChatSystemMetadata
Metadata to attach to system messages. The option is a:java.util.Map<String, Object>type. Group: producer- Returns:
- the name of the header
SpringAiChatSystemMetadata.
-
springAiChatConversationId
Conversation ID for managing separate conversation contexts in chat memory. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatConversationId.
-
springAiChatMaxFileSize
Maximum file size in bytes for multimodal content. Overrides endpoint configuration. The option is a:Longtype. Group: producer- Returns:
- the name of the header
SpringAiChatMaxFileSize.
-
springAiChatFinishReason
The reason why the chat response generation stopped (e.g., STOP, LENGTH, TOOL_CALLS). The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatFinishReason.
-
springAiChatModelName
The name of the AI model used to generate the response. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatModelName.
-
springAiChatResponseId
The unique ID of the chat response. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
SpringAiChatResponseId.
-
springAiChatResponseMetadata
Full response metadata as a Map containing all available metadata fields. The option is a:java.util.Map<String, Object>type. Group: producer- Returns:
- the name of the header
SpringAiChatResponseMetadata.
-