You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/04/04 05:01:23 UTC
(camel-kamelets) branch main updated (6e36de71 -> 77cb53a4)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
from 6e36de71 Updated CHANGELOG.md
new be54ee27 Support Camel AWS Bedrock Agent Runtime as Sink
new 2393ac41 Support Camel AWS Bedrock Agent Runtime as Sink
new c9752dab Support Camel AWS Bedrock Agent Runtime as Sink
new 32ef0445 Support Camel AWS Bedrock Agent Runtime as Sink
new e751e524 Support Camel AWS Bedrock Agent Runtime as Sink
new 77cb53a4 Support Camel AWS Bedrock Agent Runtime as Sink
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/modules/ROOT/nav.adoc | 1 +
.../aws-bedrock-agent-runtime-sink.kamelet.yaml | 30 +++++++++++-----------
.../kamelets/catalog/KameletsCatalogTest.java | 2 +-
...=> aws-bedrock-agent-runtime-sink.kamelet.yaml} | 30 +++++++++++-----------
4 files changed, 32 insertions(+), 31 deletions(-)
copy library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-text-sink.kamelet.yaml => kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml (92%)
copy library/camel-kamelets/src/main/resources/kamelets/{aws-bedrock-text-sink.kamelet.yaml => aws-bedrock-agent-runtime-sink.kamelet.yaml} (92%)
(camel-kamelets) 02/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 2393ac41c55a722c8628e0a70e36d6a84e886c8b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:54:34 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../aws-bedrock-agent-runtime-sink.kamelet.yaml | 107 +++++++++++++++++++++
1 file changed, 107 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
new file mode 100644
index 00000000..30f54401
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
@@ -0,0 +1,107 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: aws-bedrock-agent-runtime-sink
+ annotations:
+ camel.apache.org/kamelet.support.level: "Stable"
+ camel.apache.org/catalog.version: "4.6.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZGF0YS1uYW1lPSJMYXllciAxIiBpZD0iTGF5ZXJfMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQzMC40MiwxOTYuMzJjOC0xMS4zOSwyMS4xNS0zOC4zMywwLTcyLjEzYTUyLjc5LDUyLjc5LDAsMCwwLTE3LjA2LTE3LjMxYy0xLjUzLTgtNy41NC0yNy4yNi0zMS40Mi00My45MUMzNTksNDcsMzI1LjUyLDQ5LjUzLDMxOS40NCw1MC4xNmE2NC4yNyw2NC4yNywwLDAsMC0xNi4wNy0yLjk0Yy0xNy4xNy0uODEtMzAuMzcsMy44OS0zOS43OCwxNC [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Bedrock"
+ camel.apache.org/kamelet.namespace: "AWS"
+ labels:
+ camel.apache.org/kamelet.type: "sink"
+spec:
+ definition:
+ title: "AWS Bedrock Text Sink"
+ description: |-
+ Send data for invoking a knowledge base from AWS Bedrock.
+
+ The basic authentication method for the Bedrock service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
+
+ If you use the default credentials provider, the Bedrock client loads the credentials through this provider and doesn't use the basic authentication method.
+ required:
+ - modelId
+ - knowledgeBaseId
+ - region
+ type: object
+ properties:
+ modelId:
+ title: Model Id
+ description: The model Id to be used to generate responses.
+ type: string
+ enum: ["anthropic.claude-instant-v1", "anthropic.claude-v2", "anthropic.claude-v2:1", "anthropic.claude-3-sonnet-20240229-v1:0"]
+ knowledgeBaseId:
+ title: Knowledge Base Id
+ description: The Knowledge Base Id to be used to retrieve and generate responses.
+ type: string
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ region:
+ title: AWS Region
+ description: The AWS region to access.
+ type: string
+ enum: ["us-east-1", "us-west-1"]
+ useDefaultCredentialsProvider:
+ title: Default Credentials Provider
+ description: If true, the Bedrock client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+ type: boolean
+ default: false
+ uriEndpointOverride:
+ title: Overwrite Endpoint URI
+ description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+ type: string
+ overrideEndpoint:
+ title: Endpoint Overwrite
+ description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+ type: boolean
+ default: false
+ dependencies:
+ - "camel:core"
+ - "camel:aws-bedrock"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws-bedrock-agent-runtime:bedrock-knowledge"
+ parameters:
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
+ region: "{{region}}"
+ modelId: "{{modelId}}"
+ knowledgeBaseId: "{{knowledgeBaseId}}"
+ operation: retrieveAndGenerate
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+ uriEndpointOverride: "{{?uriEndpointOverride}}"
+ overrideEndpoint: "{{overrideEndpoint}}"
(camel-kamelets) 06/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 77cb53a46ebad19da0db06c999516b22dba0c1e2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:57:15 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
index 30f54401..90ee1b1c 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
@@ -30,7 +30,7 @@ metadata:
camel.apache.org/kamelet.type: "sink"
spec:
definition:
- title: "AWS Bedrock Text Sink"
+ title: "AWS Bedrock Agent Runtime Sink"
description: |-
Send data for invoking a knowledge base from AWS Bedrock.
(camel-kamelets) 03/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit c9752dab64103da62c5a40034127f7830636caf0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:56:00 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 04765857..2fa5ae3c 100644
--- a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++ b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -103,7 +103,7 @@ public class KameletsCatalogTest {
void testGetKameletsByNamespace() throws Exception {
List<Kamelet> c = catalog.getKameletsByNamespace("AWS");
assertFalse(c.isEmpty());
- assertEquals(28, c.size());
+ assertEquals(29, c.size());
c = catalog.getKameletsByGroups("Not-existing-group");
assertTrue(c.isEmpty());
}
(camel-kamelets) 05/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e751e524a5682886e7737cec1bf9b84d936a939e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:56:44 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml b/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
index 30f54401..90ee1b1c 100644
--- a/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
+++ b/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
@@ -30,7 +30,7 @@ metadata:
camel.apache.org/kamelet.type: "sink"
spec:
definition:
- title: "AWS Bedrock Text Sink"
+ title: "AWS Bedrock Agent Runtime Sink"
description: |-
Send data for invoking a knowledge base from AWS Bedrock.
(camel-kamelets) 01/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit be54ee27bcf7d98b300a2962a826cbd0c98af1bc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:53:55 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../aws-bedrock-agent-runtime-sink.kamelet.yaml | 107 +++++++++++++++++++++
1 file changed, 107 insertions(+)
diff --git a/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml b/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
new file mode 100644
index 00000000..30f54401
--- /dev/null
+++ b/kamelets/aws-bedrock-agent-runtime-sink.kamelet.yaml
@@ -0,0 +1,107 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: aws-bedrock-agent-runtime-sink
+ annotations:
+ camel.apache.org/kamelet.support.level: "Stable"
+ camel.apache.org/catalog.version: "4.6.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZGF0YS1uYW1lPSJMYXllciAxIiBpZD0iTGF5ZXJfMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQzMC40MiwxOTYuMzJjOC0xMS4zOSwyMS4xNS0zOC4zMywwLTcyLjEzYTUyLjc5LDUyLjc5LDAsMCwwLTE3LjA2LTE3LjMxYy0xLjUzLTgtNy41NC0yNy4yNi0zMS40Mi00My45MUMzNTksNDcsMzI1LjUyLDQ5LjUzLDMxOS40NCw1MC4xNmE2NC4yNyw2NC4yNywwLDAsMC0xNi4wNy0yLjk0Yy0xNy4xNy0uODEtMzAuMzcsMy44OS0zOS43OCwxNC [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Bedrock"
+ camel.apache.org/kamelet.namespace: "AWS"
+ labels:
+ camel.apache.org/kamelet.type: "sink"
+spec:
+ definition:
+ title: "AWS Bedrock Text Sink"
+ description: |-
+ Send data for invoking a knowledge base from AWS Bedrock.
+
+ The basic authentication method for the Bedrock service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
+
+ If you use the default credentials provider, the Bedrock client loads the credentials through this provider and doesn't use the basic authentication method.
+ required:
+ - modelId
+ - knowledgeBaseId
+ - region
+ type: object
+ properties:
+ modelId:
+ title: Model Id
+ description: The model Id to be used to generate responses.
+ type: string
+ enum: ["anthropic.claude-instant-v1", "anthropic.claude-v2", "anthropic.claude-v2:1", "anthropic.claude-3-sonnet-20240229-v1:0"]
+ knowledgeBaseId:
+ title: Knowledge Base Id
+ description: The Knowledge Base Id to be used to retrieve and generate responses.
+ type: string
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ region:
+ title: AWS Region
+ description: The AWS region to access.
+ type: string
+ enum: ["us-east-1", "us-west-1"]
+ useDefaultCredentialsProvider:
+ title: Default Credentials Provider
+ description: If true, the Bedrock client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+ type: boolean
+ default: false
+ uriEndpointOverride:
+ title: Overwrite Endpoint URI
+ description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+ type: string
+ overrideEndpoint:
+ title: Endpoint Overwrite
+ description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+ type: boolean
+ default: false
+ dependencies:
+ - "camel:core"
+ - "camel:aws-bedrock"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws-bedrock-agent-runtime:bedrock-knowledge"
+ parameters:
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
+ region: "{{region}}"
+ modelId: "{{modelId}}"
+ knowledgeBaseId: "{{knowledgeBaseId}}"
+ operation: retrieveAndGenerate
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+ uriEndpointOverride: "{{?uriEndpointOverride}}"
+ overrideEndpoint: "{{overrideEndpoint}}"
(camel-kamelets) 04/06: Support Camel AWS Bedrock Agent Runtime as Sink
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 32ef0445b99ba0ef7c00e5b475ebbf00843d39fd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 4 06:56:12 2024 +0200
Support Camel AWS Bedrock Agent Runtime as Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 39773960..f9cb6062 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -1,6 +1,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
* xref:avro-deserialize-action.adoc[]
* xref:avro-serialize-action.adoc[]
+* xref:aws-bedrock-agent-runtime-sink.adoc[]
* xref:aws-bedrock-text-sink.adoc[]
* xref:aws-cloudtrail-source.adoc[]
* xref:aws-cloudwatch-sink.adoc[]