Interface GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.google.vertexai.GoogleVertexAIComponent>
- All Known Implementing Classes:
GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilderImpl
- Enclosing interface:
GoogleVertexaiComponentBuilderFactory
public static interface GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder
extends ComponentBuilder<org.apache.camel.component.google.vertexai.GoogleVertexAIComponent>
Builder for the Google Vertex AI component.
-
Method Summary
Modifier and TypeMethodDescriptionanthropicVersion(String anthropicVersion) Anthropic API version for Claude models.autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled.candidateCount(Integer candidateCount) Number of candidate responses to generate.client(com.google.genai.Client client) The Google GenAI client for Vertex AI.configuration(org.apache.camel.component.google.vertexai.GoogleVertexAIConfiguration configuration) The component configuration.healthCheckConsumerEnabled(boolean healthCheckConsumerEnabled) Used for enabling or disabling all consumer based health checks from this component.healthCheckProducerEnabled(boolean healthCheckProducerEnabled) Used for enabling or disabling all producer based health checks from this component.jsonMode(boolean jsonMode) Whether to use JSON request/response format.lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).maxOutputTokens(Integer maxOutputTokens) Maximum number of output tokens.operation(org.apache.camel.component.google.vertexai.GoogleVertexAIOperations operation) Set the operation for the producer.predictionServiceClient(com.google.cloud.aiplatform.v1.PredictionServiceClient predictionServiceClient) The Google Cloud AI Platform Prediction Service client for rawPredict operations.Publisher name for partner models (e.g., anthropic, meta, mistralai).serviceAccountKey(String serviceAccountKey) The Service account key that can be used as credentials for the Vertex AI client.streamOutputMode(String streamOutputMode) Streaming output mode: complete (default) or chunks.temperature(Float temperature) Temperature parameter for generation (0.0-1.0).Top-K parameter for generation.Top-P parameter for nucleus sampling.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
serviceAccountKey
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder serviceAccountKey(String serviceAccountKey) The Service account key that can be used as credentials for the Vertex AI client. It can be loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
serviceAccountKey- the value to set- Returns:
- the dsl builder
-
anthropicVersion
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder anthropicVersion(String anthropicVersion) Anthropic API version for Claude models. Required when publisher is 'anthropic'. The option is a: <code>java.lang.String</code> type. Default: vertex-2023-10-16 Group: producer- Parameters:
anthropicVersion- the value to set- Returns:
- the dsl builder
-
candidateCount
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder candidateCount(Integer candidateCount) Number of candidate responses to generate. The option is a: <code>java.lang.Integer</code> type. Default: 1 Group: producer- Parameters:
candidateCount- the value to set- Returns:
- the dsl builder
-
configuration
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder configuration(org.apache.camel.component.google.vertexai.GoogleVertexAIConfiguration configuration) The component configuration. The option is a: <code>org.apache.camel.component.google.vertexai.GoogleVertexAIConfiguration</code> type. Group: producer- Parameters:
configuration- the value to set- Returns:
- the dsl builder
-
jsonMode
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder jsonMode(boolean jsonMode) Whether to use JSON request/response format. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
jsonMode- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
maxOutputTokens
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder maxOutputTokens(Integer maxOutputTokens) Maximum number of output tokens. The option is a: <code>java.lang.Integer</code> type. Default: 1024 Group: producer- Parameters:
maxOutputTokens- the value to set- Returns:
- the dsl builder
-
operation
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder operation(org.apache.camel.component.google.vertexai.GoogleVertexAIOperations operation) Set the operation for the producer. The option is a: <code>org.apache.camel.component.google.vertexai.GoogleVertexAIOperations</code> type. Group: producer- Parameters:
operation- the value to set- Returns:
- the dsl builder
-
publisher
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder publisher(String publisher) Publisher name for partner models (e.g., anthropic, meta, mistralai). Required for rawPredict operations. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
publisher- the value to set- Returns:
- the dsl builder
-
streamOutputMode
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder streamOutputMode(String streamOutputMode) Streaming output mode: complete (default) or chunks. The option is a: <code>java.lang.String</code> type. Default: complete Group: producer- Parameters:
streamOutputMode- the value to set- Returns:
- the dsl builder
-
temperature
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder temperature(Float temperature) Temperature parameter for generation (0.0-1.0). The option is a: <code>java.lang.Float</code> type. Default: 0.7 Group: producer- Parameters:
temperature- the value to set- Returns:
- the dsl builder
-
topK
Top-K parameter for generation. The option is a: <code>java.lang.Integer</code> type. Default: 40 Group: producer- Parameters:
topK- the value to set- Returns:
- the dsl builder
-
topP
Top-P parameter for nucleus sampling. The option is a: <code>java.lang.Float</code> type. Default: 0.95 Group: producer- Parameters:
topP- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled- the value to set- Returns:
- the dsl builder
-
client
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder client(com.google.genai.Client client) The Google GenAI client for Vertex AI. The option is a: <code>com.google.genai.Client</code> type. Group: advanced- Parameters:
client- the value to set- Returns:
- the dsl builder
-
predictionServiceClient
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder predictionServiceClient(com.google.cloud.aiplatform.v1.PredictionServiceClient predictionServiceClient) The Google Cloud AI Platform Prediction Service client for rawPredict operations. The option is a: <code>com.google.cloud.aiplatform.v1.PredictionServiceClient</code> type. Group: advanced- Parameters:
predictionServiceClient- the value to set- Returns:
- the dsl builder
-
healthCheckConsumerEnabled
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder healthCheckConsumerEnabled(boolean healthCheckConsumerEnabled) Used for enabling or disabling all consumer based health checks from this component. The option is a: <code>boolean</code> type. Default: true Group: health- Parameters:
healthCheckConsumerEnabled- the value to set- Returns:
- the dsl builder
-
healthCheckProducerEnabled
default GoogleVertexaiComponentBuilderFactory.GoogleVertexaiComponentBuilder healthCheckProducerEnabled(boolean healthCheckProducerEnabled) Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true. The option is a: <code>boolean</code> type. Default: true Group: health- Parameters:
healthCheckProducerEnabled- the value to set- Returns:
- the dsl builder
-