Skip to content

TypeScript inference for tools? #30

@ericclemmons

Description

@ericclemmons

What's the best way to properly infer the types for the this.getAITools() so I can pass them to the client?

https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message#tooluipart
and
https://ai-sdk.dev/docs/ai-sdk-ui/chatbot#inferuitools

I think it may be possible to add just a bit to https://github.com/cloudflare/playwright-mcp/blob/main/src/tools.ts, now that I think of it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions