-
Notifications
You must be signed in to change notification settings - Fork 42
Creating onFunctionCalls Callback #99
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
base: main
Are you sure you want to change the base?
Conversation
… GenerateContentResponse
@toshiossada that's pretty great. a couple of changes I'd like to see made:
|
I used 'onDone' because this is a callback will be triggered when request finish, don't necessarily for functionCall ou ToolCall |
I know. It should be. Otherwise why are you passing back only the last chunk response object? |
Whats do you sugest? |
I'm thinking something like onFunctionCalls or onToolCalls |
ok, DONE! |
@csells anything else? |
When request was finished it's not possible to trigger a callback, with this fix it's possible to give a callback onFunctionCalls geting the list of FunctionCall
Example how to use
#98
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on [Discord].