-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch vercel from zod to jsonSchema #1156
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe PR introduces minor changes by adding filters for active connections in 🔗 Related PRs
Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to e67a6b8 in 12 seconds
More details
- Looked at
45
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. js/src/frameworks/vercel.ts:43
- Draft comment:
Avoid using@ts-ignore
unless absolutely necessary. EnsurejsonSchema
is correctly typed to avoid this. - Reason this comment was not posted:
Comment did not seem useful.
2. js/src/frameworks/vercel.ts:45
- Draft comment:
Avoid using@ts-ignore
unless absolutely necessary. EnsurejsonSchema
is correctly typed to avoid this. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_OqgxBNZHnTIgm1wc
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -1,10 +1,10 @@ | |||
import { tool } from "ai"; | |||
import { jsonSchema, tool } from "ai"; | |||
import { z } from "zod"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're switching from Zod to JSON Schema, the z
import from 'zod' appears to be unused in this file. Consider removing it to keep the imports clean and avoid confusion.
This comment was generated by github-actions[bot]! JS SDK Coverage Report📊 Coverage report for JS SDK can be found at the following URL: 📁 Test report folder can be found at the following URL: |
Code Review SummaryChanges Overview
Key Concerns
Recommendations
Code Quality Rating: 6/10
Please address the comments in the review before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 00af088 in 9 seconds
More details
- Looked at
17
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/src/frameworks/vercel.ts:43
- Draft comment:
The@ts-ignore
comment is replaced with@ts-expect-error
, which is more appropriate as it indicates an expected error that should be resolved in the future. Ensure that this error is indeed expected and documented for future resolution. - Reason this comment was not posted:
Confidence changes required:50%
The@ts-ignore
comment is replaced with@ts-expect-error
, which is more appropriate as it indicates an expected error that should be resolved in the future.
Workflow ID: wflow_wDVexHeriMuZPYv1
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 4d13503 in 31 seconds
More details
- Looked at
32
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. js/src/frameworks/vercel.ts:43
- Draft comment:
Usingas unknown as any
can lead to potential type safety issues. Consider defining a proper type or interface forschema.parameters
. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment raises a valid point about type safety, asas unknown as any
bypasses TypeScript's type checking. However, looking at the previous code, it used @ts-expect-error with a comment explaining the types are JSONSchemaV7. This suggests there may be a legitimate reason for the type assertion that can't be easily fixed. Without seeing the full type definitions and understanding why the original @ts-expect-error was needed, we can't be confident this is actually fixable.
I might be too quick to assume the type assertion is necessary - there could be a proper way to type this that I'm missing. The original @ts-expect-error comment could have been wrong.
While true, without access to the full type definitions and the ai package's requirements, we can't be confident enough that this comment is actionable. The change from @ts-expect-error to type assertion suggests the team is aware of and has considered the typing issues.
Delete the comment since we don't have enough context to be confident this is a fixable issue, and the previous code suggests the type assertion may be intentional/necessary.
Workflow ID: wflow_ld4NN3rf1XfMHIPf
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Switches parameter validation from
zod
tojsonSchema
invercel.ts
and filters active accounts inbase.toolset.ts
.zod
tojsonSchema
for parameter validation ingenerateVercelTool()
invercel.ts
.status: "ACTIVE"
andshowActiveOnly: true
to connected account list inComposioToolSet
inbase.toolset.ts
.zExecuteToolCallParams
withZExecuteToolCallParams
invercel.ts
.jsonSchemaToModel
usage invercel.ts
.This description was created by for 4d13503. It will automatically update as commits are pushed.
EntelligenceAI PR Summary
The recent update includes minor enhancements: adding filters for active connections in
base.toolset.ts
and refining parameter management invercel.ts
. These adjustments are not substantial.