Post

Replies

Boosts

Views

Activity

Reply to Use of SpotlightSearchTool() returns "Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000" , although model is available
Thanks a lot for Your help! The code you suggested works so far, that the SpotlightSearchTool() is invoked with returning a message in the console like: "📍 NativeSpotlightSearchTool: Completed with 82 total results, returning 15 items" However in some instances for reasons yet unclear to me, the execution stops here, not finishing the response still returning the error: "Playground has encountered an error Provided X.XXX tokens, but the maximum allowed is 4.096." , with the number X depending on the prompt. Also the workaround yet works only with the "guide: .focused())" option, not with ".complete" or ".none" .
Aug ’26
Reply to Use of SpotlightSearchTool() returns "Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000" , although model is available
Thanks a lot for Your help! The code you suggested works so far, that the SpotlightSearchTool() is invoked with returning a message in the console like: "📍 NativeSpotlightSearchTool: Completed with 82 total results, returning 15 items" However in some instances for reasons yet unclear to me, the execution stops here, not finishing the response still returning the error: "Playground has encountered an error Provided X.XXX tokens, but the maximum allowed is 4.096." , with the number X depending on the prompt. Also the workaround yet works only with the "guide: .focused())" option, not with ".complete" or ".none" .
Replies
Boosts
Views
Activity
Aug ’26