-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Error invalid schema #2339
Comments
Hello @nidhinakranii! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor! |
eliza/packages/plugin-coinbase/src/types.ts Line 100 in de98117
|
Hello @nidhinakranii , the error suggests that the CREATE_TOKEN handler is missing a required schema parameter when attempting to generate an object. It appears the schema is either not defined or being passed as undefined in the function. Ensuring the schema parameter is properly defined and included in the request should resolve the issue. |
I added schema and install it at root directory as well as plugin folder
separately to check if it works but getting this issue :
Type 'ZodObject<{ name: ZodString; symbol: ZodString; }, "strip",
ZodTypeAny, { symbol?: string; name?: string; }, { symbol?: string; name?:
string; }>' is not assignable to type 'ZodType<any, ZodTypeDef, any>'.
The types of '_getOrReturnCtx(...).common.issues' are incompatible between
these types.
Type 'Zod.ZodIssue[]' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodIssue[]'.
Type 'Zod.ZodIssue' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodIssue'.
Type 'ZodInvalidUnionIssue & { fatal?: boolean; message: string; }' is not
assignable to type 'ZodIssue'.
Type 'Zod.ZodInvalidUnionIssue & { fatal?: boolean; message: string; }' is
not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodInvalidUnionIssue
& { fatal?: boolean; message: string; }'.
Type 'ZodInvalidUnionIssue & { fatal?: boolean; message: string; }' is not
assignable to type 'ZodInvalidUnionIssue'.
Types of property 'unionErrors' are incompatible.
Type 'Zod.ZodError<any>[]' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodError<any>[]'.
Type 'Zod.ZodError<any>' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodError<any>'.
Types of property 'issues' are incompatible.
Type 'Zod.ZodIssue[]' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodIssue[]'.
Type 'Zod.ZodIssue' is not assignable to type
***@***.***/anthropic/node_modules/zod/lib/ZodError").ZodIssue'.
Type 'ZodInvalidUnionIssue & { fatal?: boolean; message: string; }' is not
assignable to type 'ZodIssue'.ts(2322)
generation.ts(1756, 5): The expected type comes from property 'schema'
which is declared here on type 'GenerationOptions'
…On Thu, 16 Jan 2025 at 22:37, HUC-VICTORY ***@***.***> wrote:
Hello @nidhinakranii <https://github.com/nidhinakranii> , the error
suggests that the CREATE_TOKEN handler is missing a required schema
parameter when attempting to generate an object. It appears the schema is
either not defined or being passed as undefined in the function. Ensuring
the schema parameter is properly defined and included in the request should
resolve the issue.
—
Reply to this email directly, view it on GitHub
<#2339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATHEF526IGM3LXQTTROA3XT2LB3JBAVCNFSM6AAAAABVIHPKVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJXGM3DMMJQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am trying to develop a plugin and got this error while asking for token creation
["◎ Starting CREATE_TOKEN handler..."]
Error in generateObject: InvalidArgumentError [AI_InvalidArgumentError]: Invalid argument for parameter schema: Schema is required for object output.
cause: undefined,
parameter: 'schema',
value: undefined,
[Symbol(vercel.ai.error)]: true,
[Symbol(vercel.ai.error.AI_InvalidArgumentError)]: true
}
["⛔ AI_InvalidArgumentError: Invalid argument for parameter schema: Schema is required for object output."]
The text was updated successfully, but these errors were encountered: