@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 +6 -0
- package/README.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ const { text } = await generateText({
|
|
|
109
109
|
});
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
###
|
|
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
|
-
|
|
124
|
+
inputSchema: z.object({
|
|
125
125
|
city: z.string().describe('The city name'),
|
|
126
126
|
}),
|
|
127
127
|
execute: async ({ city }) => {
|