@runpod/ai-sdk-provider 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @runpod/ai-sdk-provider
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d7dc293: docs: fix tool calling example
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -109,7 +109,7 @@ const { text } = await generateText({
109
109
  });
110
110
  ```
111
111
 
112
- ### Function Calling
112
+ ### Tool Calling
113
113
 
114
114
  ```ts
115
115
  import { generateText, tool } from 'ai';
@@ -121,7 +121,7 @@ const { text, toolCalls } = await generateText({
121
121
  tools: {
122
122
  getWeather: tool({
123
123
  description: 'Get weather information for a city',
124
- parameters: z.object({
124
+ inputSchema: z.object({
125
125
  city: z.string().describe('The city name'),
126
126
  }),
127
127
  execute: async ({ city }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runpod/ai-sdk-provider",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",