Skip to content

Conversation

@priley86
Copy link
Contributor

@priley86 priley86 commented Nov 12, 2025

Deprecates usage of the lesser maintained @langchain/community/tools/google_calendar, which are currently causing issues w/ the zod schemas supported by the OpenAI LLM models references here (zod schemas here have become dated & do not include .nullable() with .optional() fields).

error when this tool is currently used:

intercept-console-error.ts:41 StreamError: Zod field at `#/definitions/extract/properties/search_query` uses `.optional()` without `.nullable()` which is not supported by the API. See: https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required
  at consumeStream (stream.js:453:35)
  at async Object.submit (stream.js:555:9)

We've made a similar update already in here and in auth0-ai-samples.

Tested the inline view and create google cal tools introduced here to work as expected now.

Screenshots:
View:
Screenshot 2025-11-12 at 5 44 38 PM

Create:
Screenshot 2025-11-12 at 5 46 21 PM

Screenshot 2025-11-12 at 5 46 17 PM

credentials: {
accessToken: getAccessToken,
accessToken: async () => {
const { getAccessToken } = await import('./auth0-ai');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks weird as we dont do this for any other imports, any reason for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants