You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So basically, if i use the return function called method, the AI will respond with the value that got returned from the function.
Is there a way to make it so the AI answers instead?
Example
*Me: Hi!
*AI: hi there!
*Save my email email@mail
AI ...... < I want the AI to continue the conversation, for example say "i have now added your email to the list"
For now, all it does is show me the returned value from the function, the ai is not responding on its own i would have to ask something again for it to talk
Im sorry if this was complicated , i am on my phone just curious to see how other people do when they want to achieve this ?.
The text was updated successfully, but these errors were encountered:
Hi @samuelgjekic , it's an interesting question. generateChat and generateText work that way, i.e. they call the provided functions, if AI engine requires that, and they provide the answer to the user. See for example:
The generateChatOrReturnFunctionCalled is designed to manually handle this loop: you have to call functions as a result of AI request and then manually provide the results to the engine again.
See for example
So basically, if i use the return function called method, the AI will respond with the value that got returned from the function.
Is there a way to make it so the AI answers instead?
Example
*Me: Hi!
*AI: hi there!
*Save my email email@mail
AI ...... < I want the AI to continue the conversation, for example say "i have now added your email to the list"
For now, all it does is show me the returned value from the function, the ai is not responding on its own i would have to ask something again for it to talk
Im sorry if this was complicated , i am on my phone just curious to see how other people do when they want to achieve this ?.
The text was updated successfully, but these errors were encountered: