Skip to content
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

Gemini response can contains text and function call. #2029

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GregoireW
Copy link

The function call feature can result in gemini respond multiple part like

  • part 1: message: " I understand what you want to do, I will check ..."
  • part 2: function call
  • part 3: message "if it is not enough you will need to check yourself .... "

Today, the response via spring-ai is the message will not launch the function because the code want every part to be a function call to do it. There will be 3 outputs on the response (1 message, 1 empty string, 1 message)

It seems it is ok to switch to 'anyMatch' instead of 'allMatch' on this subject, because after the function call, another call will be made to the model and a return like

  • part 1: message "I understand what you want, I get the result and you can do .... "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant