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

added FitnessTracker API Collection for multi-turn for BFCL #691

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amitojsingh2022
Copy link
Contributor

@amitojsingh2022 amitojsingh2022 commented Oct 13, 2024

The collection I am designing is the FitnessTrackerAPI which focuses on helping users manage their fitness and nutrition goals. It includes methods which allow users to log physical activities, track calories burned, food intake including calories and protein, along with tracking the daily fitness goals. This API can be used to have a chain of very interesting function calls incorporating the other APIs.

Copy link
Collaborator

@HuanzhiMao HuanzhiMao left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @amitojsingh2022 and welcome!

Copy link
Contributor

@Fanjia-Yan Fanjia-Yan left a comment

Choose a reason for hiding this comment

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

Hi Amitoj,

Thank you for the contribution and we would like to work with you to further polishing this API set so that it can be incorporated into our evaluations! Here are 2 improvements on the particular FitnessTrackerAPI:

  1. It would be cool if some output of the functions can serve as inputs of a new function. Is it possible we can add more of that in? One example is "Eat apple until I fulfill my goal". A user need to find the remaining goal, and use the output as an input to somehwere like batch eating apple.
  2. It would be interesting if we create an Enum class of {food : calories} and a way to populate this Enum via functions. This can promote some interesting questions like "Eat apple until I fulfill my goal". That way the model need to constantly check if he meets the goal.

Thank you for pushing this through and let us know if you have any question.

@amitojsingh2022
Copy link
Contributor Author

Quick summary of the improvements from the last commit: Instead of creating an enum class for the food since enums are immutable. food_log is a dictionary which stores the food item's name, calories, and protein information which I use for functions to complete tasks such as "Eat an apple until I fulfill my goal". In addition, added some new functions to take on more dynamic tasks.

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.

3 participants