FoundationModels tool calling doesn't get triggered

In the play ground I'm trying to bias my LanguageModel to use a tool I registered, but I don't see it actually calling the tool. I'm following the developer video on landmarks itinerary generation tutorial almost verbatim. Is this a prompt engineering thing I'm missing? Or is it possible that I'm injecting my tool wrong?

Would you mind to share your code example that reproduces the issue? Thanks.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

FoundationModels tool calling doesn't get triggered
 
 
Q