Skip to content

defaulting to an empty object for tools with no parameters #5527

@demostanis

Description

@demostanis

Feature Description

i often have tools without parameters in my project, and often forget that i should put an additional parameters: z.object({}) line to my tool definition.
shouldn't AI SDK default to an empty object?

Use Cases

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/corebugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions