diff --git a/examples/with-netlify-functions/src/tools/index.ts b/examples/with-netlify-functions/src/tools/index.ts index 7d18cce46..04095cbc5 100644 --- a/examples/with-netlify-functions/src/tools/index.ts +++ b/examples/with-netlify-functions/src/tools/index.ts @@ -9,7 +9,7 @@ export const weatherTool = createTool({ location: z.string().describe("City or location to look up"), }), execute: async ({ location }, context) => { - context?.logger.info(`Fetching weather for ${location}`); + context?.logger?.info(`Fetching weather for ${location}`); const mockWeatherData = { location,