---
changelog:
  category: Release
  version: 1.10.3
date: '2025-11-02T10:52:42Z'
seo:
  description: >-
    Implement/Convert a procedure/contract -> AI SDK Tool ai-sdk: CreateTool,
    implementTool helpers - by @dinwwwh in
    https://github.com/middleapi/orpc/issues/1151…
title: v1.10.3
type: changelog
---
### AI SDK `implementTool` & `createTool` helpers

Implement/Convert a procedure/contract -> [AI SDK Tool](https://ai-sdk.dev/docs/foundations/tools)

```ts
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
})
```

### &nbsp;&nbsp;&nbsp;🚀 Features

- **ai-sdk**: CreateTool, implementTool helpers &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/1151 [<samp>(d92c7)</samp>](https://github.com/middleapi/orpc/commit/d92c7aa0)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **zod**: Union and intersection schema conversion &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/1157 [<samp>(b1b99)</samp>](https://github.com/middleapi/orpc/commit/b1b99141)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/middleapi/orpc/compare/v1.10.2...v1.10.3)
