ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Any plans to refactor using `parts`?

Open DarrenBaldwin07 opened this issue 1 year ago • 1 comments

Looks like this template still uses the deprecated message.toolInvocations field https://github.com/vercel/ai-chatbot/blob/27ff56625848f091b40c65506858c146f742a047/lib/utils.ts#L66C26-L66C49

DarrenBaldwin07 avatar Feb 17 '25 21:02 DarrenBaldwin07

Is there documentation some where on how to stop using message.toolInvocations? I am willing to work on

cgilly2fast avatar Feb 24 '25 00:02 cgilly2fast

Hey @DarrenBaldwin07, thanks for opening this issue! We recently landed #813 that refactored the message schema to use the updated parts.

@cgilly2fast We have a migration guide that details how you can migrate to the new schema and stop using message.toolInvocations.

jeremyphilemon avatar May 01 '25 01:05 jeremyphilemon

Hey @DarrenBaldwin07, thanks for opening this issue! We recently landed #813 that refactored the message schema to use the updated parts.

@cgilly2fast We have a migration guide that details how you can migrate to the new schema and stop using message.toolInvocations.

Thank you!

DarrenBaldwin07 avatar May 01 '25 01:05 DarrenBaldwin07