-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gemini): implement Google Gemini connector #3549
Conversation
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/GeminiConnectorFunction.java
Fixed
Show fixed
Hide fixed
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/GeminiConnectorFunction.java
Fixed
Show fixed
Hide fixed
430882f
to
e88017f
Compare
3b4ed0a
to
7a9bcff
Compare
...gle/google-base/src/main/java/io/camunda/google/supplier/util/GoogleServiceSupplierUtil.java
Fixed
Show fixed
Hide fixed
7a9bcff
to
d1f2197
Compare
...gle/google-base/src/main/java/io/camunda/google/supplier/util/GoogleServiceSupplierUtil.java
Dismissed
Show dismissed
Hide dismissed
d1f2197
to
f74d3cf
Compare
f74d3cf
to
ac96f8d
Compare
...tors/google/google-gemini/src/main/java/io/camunda/connector/gemini/caller/GeminiCaller.java
Dismissed
Show dismissed
Hide dismissed
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/GeminiConnectorFunction.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/GeminiConnectorFunction.java
Outdated
Show resolved
Hide resolved
...e/google-gemini/src/main/java/io/camunda/connector/gemini/supplier/VertexAISupplierUtil.java
Outdated
Show resolved
Hide resolved
...tors/google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequest.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
.toArray(); | ||
} | ||
|
||
private Object map2MediaOrText(Map<String, String> map) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by the way, about methods namings : a few links to naming conventions : https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html , https://google.github.io/styleguide/javaguide.html#s5-naming , but in this case, up to you and connector teams
...ors/google/google-gemini/src/main/java/io/camunda/connector/gemini/mapper/PromptsMapper.java
Outdated
Show resolved
Hide resolved
...ors/google/google-gemini/src/main/java/io/camunda/connector/gemini/mapper/PromptsMapper.java
Outdated
Show resolved
Hide resolved
...ors/google/google-gemini/src/main/java/io/camunda/connector/gemini/mapper/PromptsMapper.java
Outdated
Show resolved
Hide resolved
...le/google-gemini/src/main/java/io/camunda/connector/gemini/mapper/GenerativeModelMapper.java
Outdated
Show resolved
Hide resolved
...oogle-gemini/src/main/java/io/camunda/connector/gemini/mapper/FunctionDeclarationMapper.java
Outdated
Show resolved
Hide resolved
53beaa4
to
4356f98
Compare
4356f98
to
e4dcc07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but don’t merge it until the main reviewers from the connector team approve.
QA information
Test Environment
Test ScopePlease describe the test scope, happy path, edge cases that come to your mind, and whatever you think might relevant to test Test DataPlease provide the test data, if needed (files, URLs, code snippets, FEEL expressions) |
e4dcc07
to
77bee8a
Compare
@TemplateProperty.Pattern( | ||
value = "(^(([0-1]\\.[0-9])|([0-2]))$)|(^$)", | ||
message = | ||
"value must be in the range from 0 to 2 in increments of 0.1"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value => Value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor questions, great work :)
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
description = "Insert prompt.", | ||
feel = Property.FeelMode.required) | ||
@NotNull | ||
List<Object> prompts, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm never comfortable being able to log the prompts. Do we have a decision on that? It affects all the AI connectors
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Outdated
Show resolved
Hide resolved
.../google/google-gemini/src/main/java/io/camunda/connector/gemini/model/GeminiRequestData.java
Show resolved
Hide resolved
...ors/google/google-gemini/src/main/java/io/camunda/connector/gemini/mapper/PromptsMapper.java
Show resolved
Hide resolved
c3e0c2f
to
a2e4742
Compare
a2e4742
to
beffd9b
Compare
Description
Implement gemini connector
Related issue
closes
#3717