GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.76k stars 2.83k forks source link

feat(vertexai): Add a new sample for automatic function calling #9407

Closed jaycee-li closed 2 months ago

jaycee-li commented 3 months ago

Description

This PR added a new sample AutomaticFunctionCalling.java for automatic function calling usage. It also updated the library version and removed a deprecated field in GroundingWithPublicData.java.

Checklist

snippet-bot[bot] commented 3 months ago

Here is the summary of changes.

You are about to add 2 region tags. - [vertexai/snippets/src/main/java/vertexai/gemini/AutomaticFunctionCalling.java:19](https://github.com/jaycee-li/java-docs-samples/blob/58e751713439e181a3a2d485cadc63a3ce73b0c4/vertexai/snippets/src/main/java/vertexai/gemini/AutomaticFunctionCalling.java#L19), tag `generativeaionvertexai_gemini_automatic_function_calling` - [vertexai/snippets/src/main/java/vertexai/gemini/AutomaticFunctionCalling.java:20](https://github.com/jaycee-li/java-docs-samples/blob/58e751713439e181a3a2d485cadc63a3ce73b0c4/vertexai/snippets/src/main/java/vertexai/gemini/AutomaticFunctionCalling.java#L20), tag `aiplatform_gemini_automatic_function_calling`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

Sita04 commented 3 months ago

Kindly fix the test failure.

Sita04 commented 2 months ago

@jaycee-li gentle ping on this PR.

jaycee-li commented 2 months ago

@jaycee-li gentle ping on this PR.

Hi @Sita04 , apologies for the delay, I was OOO for the past 4 weeks.

Thanks for the review! I've addressed all the comments.

jaycee-li commented 2 months ago

Hi @Sita04, the previous integration test failed and I've fixed the issue. Could you please re-run the test? Thank you!

gcf-merge-on-green[bot] commented 2 months ago

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.