Skip to content
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

Open
nidhinakranii opened this issue Jan 15, 2025 · 4 comments
Open

Error invalid schema #2339

nidhinakranii opened this issue Jan 15, 2025 · 4 comments

Comments

@nidhinakranii
Copy link

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."]

Copy link
Contributor

Hello @nidhinakranii! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@nidhinakranii nidhinakranii changed the title Error invalid Scema Error invalid schema Jan 15, 2025
@JoeyKhd
Copy link
Member

JoeyKhd commented Jan 15, 2025

@nidhinakranii

export const TokenContractSchema = z

@deeplus2022
Copy link

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.

@nidhinakranii
Copy link
Author

nidhinakranii commented Jan 17, 2025 via email

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

No branches or pull requests

4 participants