Implementing Tool Calling
I currently have an openAI tool-calling system in my RN application, which I am trying to migrate to the on-device iOS LLMs. If possible, I would love to open a PR and give the tool-calling adaptation task a shot, let me know what you think @deveix !
Please do, I've been thinking about tools calling challenges of how you can implement a function in JS that ports to swift somehow over the bridge but haven't tried it yet. You can try and let me know!
@deveix Was wondering what testing environment do you use? I.e. what physical device/simulator, Xcode version, macOs version, etc. Was running into some issues with this, thanks!
also yarn test which README mentions doesn't seem to work, maybe it's intended as a TODO?
@ecoArcGaming I made a mistake adding yarn test before actually adding tests so I removed it. For example project i was testing with: example project you will find at the end instructions. Make sure you have latest macOS 26 beta. latest XCode 26 beta.
I only have one macbook for all dev work so I'm hesitant to get MacOS 26. I do have Xcode 26 with iOS 26 simulator tho, but the foundation model doesn't seem to be enabled on that. Do you use a physical device or Xcode simulator to test?
You have to own a macbook m1 or more. i use simulator. also has to be macOS 26. You could wait till they release it gets out of beta and install it
I have an M2 Mac. Do you know if MacOS 26 is still required if I use a physical iPhone running iOS 26 to test?
Sorry for the delay in response. It works on simulator.
Do we plan to deploy to the nom registry with a new version tag? @deveix
Yes, I will. tomorrow will push it to npm.
Do you wanna give me editor permission so I can also maintain the repo as apple rolls out more updates? major changes would still go through PRs of course
Yes, I added you. I also published to npm!