babakcode / flutter_gemini

Flutter Google Gemini SDK
https://pub.dev/packages/flutter_gemini
BSD 3-Clause "New" or "Revised" License
166 stars 53 forks source link

Get Intent #17

Open valientegaston opened 6 months ago

valientegaston commented 6 months ago

Hi, excellent package! Could you give me a small example or guide on how to obtain an intent? Thank you so much!

babakcode commented 6 months ago

I can't understand what you mean. Please explain more about it.

valientegaston commented 6 months ago

Good morning, thank you for your response. I'm new to AI with Gemini. I consulted the same AI on how to implement an assistant that detects the user's intention, and it gave me Flutter code referencing your library and methods related to the word "intention" which clearly does not exist. When I say intention, let me clarify with an example. My idea was to use it in a desktop application as an assistant, where, for instance, the user might type "create check" or "new check" or "I need to create a new personal check," and the AI could indicate a parameter or word summarizing the user's intention, like "new_check," to take different actions within the application. I provided all this explanation to Gemini, and it even returned code and an explanation of how to implement something that never worked. Now I'm wondering if this is possible or if Gemini blatantly lied to me. :) Thank you.