npm @orpc/tanstack-query 1.10.3
v1.10.3

latest releases: 1.13.0, 0.0.0-next.f01f7b1, 0.0.0-next.b2d00a3...
one month ago

AI SDK implementTool & createTool helpers

Implement/Convert a procedure/contract -> AI SDK Tool

const getWeatherTool = implementTool(getWeatherContract, {
  execute: async ({ location }) => ({
    location,
    temperature: 72 + Math.floor(Math.random() * 21) - 10,
  }),
})

const getWeatherTool = createTool(getWeatherProcedure, {
  context: {}, // provide initial context if needed
})

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

Don't miss a new tanstack-query release

NewReleases is sending notifications on new releases.