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

Function calling #32

Merged
merged 11 commits into from
Mar 12, 2024
Merged

Function calling #32

merged 11 commits into from
Mar 12, 2024

Conversation

alx13
Copy link
Contributor

@alx13 alx13 commented Dec 19, 2023

Initial revision for function calling

https://ai.google.dev/docs/function_calling

Copy link

changeset-bot bot commented Dec 19, 2023

🦋 Changeset detected

Latest commit: 5e17b2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@google/generative-ai Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lahirumaramba lahirumaramba self-assigned this Feb 26, 2024
@liranrevivo
Copy link

Will it be possible to use this feature of function calling along with the multi step (i.e. ChatSession) capabilities? e.g. to call the endpoint .startChat along with an API schema for the model to do function calling?

Copy link
Collaborator

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking through this, pending what the automatic function calling design is going to look like but FYI, sometime before this is merged, add a changeset (yarn changeset), should be a minor bump.

@alx13 alx13 marked this pull request as ready for review March 8, 2024 15:44
Copy link
Collaborator

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't completely read through it yet, just have a few comments so far and will finish the rest shortly.

packages/main/src/requests/response-helpers.ts Outdated Show resolved Hide resolved
packages/main/src/requests/response-helpers.ts Outdated Show resolved Hide resolved
packages/main/src/requests/request-helpers.ts Show resolved Hide resolved
@hsubox76
Copy link
Collaborator

Will it be possible to use this feature of function calling along with the multi step (i.e. ChatSession) capabilities? e.g. to call the endpoint .startChat along with an API schema for the model to do function calling?

This PR is for basic function calling, automated function calling will come very soon after.

@alx13 alx13 merged commit 9887465 into main Mar 12, 2024
3 checks passed
@alx13 alx13 deleted the feature/function-calling branch March 12, 2024 17:05
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.

None yet

4 participants