You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to define tools on frontend. Tools doesn't have to do anything and I am not expecting any result from execution, it's solely for observing how the AI would behave. The problem is that when I try to define tools on frontend I get Unhandled Runtime Error: You tried to define a tool with the name findWeather, but it already exists. What is the proper way of defining tools in useEdgeRuntime?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am trying to define tools on frontend. Tools doesn't have to do anything and I am not expecting any result from execution, it's solely for observing how the AI would behave. The problem is that when I try to define tools on frontend I get
Unhandled Runtime Error: You tried to define a tool with the name findWeather, but it already exists
. What is the proper way of defining tools inuseEdgeRuntime
?When I define tools only on backend they work and I can show tools UI on frontend.
Beta Was this translation helpful? Give feedback.
All reactions