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" .
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Tags: