Skip to content

tool execute inputs no longer typed with zod 3.24 #6876

Closed
@eddiew

Description

@eddiew

Description

in v4, tool arguments to execute were automatically typed according to the zod schema given by parameters

in v5, passing inputSchema does not apply types to the parameters of execute, meaning that I have to manually write types and keep them in sync with inputSchema.

This is a pretty big regression in terms of DX.

AI SDK Version

  • ai: 5.0.0-beta.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions