chore: add note to message-v2 that we need to do further updates to it before this PR can be merged VERYYYY IMPORTANTgcleangclean

This commit is contained in:
Aiden Cline
2026-03-20 15:27:35 -05:00
parent 9e03d49637
commit 6c2efcb8db

View File

@@ -584,6 +584,7 @@ export namespace MessageV2 {
return false
})()
// TODO: THIS IS NOT COMPLIANT WITH AI SDK V66!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
const toModelOutput = (output: unknown) => {
if (typeof output === "string") {
return { type: "text", value: output }
@@ -785,6 +786,7 @@ export namespace MessageV2 {
return await convertToModelMessages(
result.filter((msg) => msg.parts.some((part) => part.type !== "step-start")),
{
// TODO: WE MUST REVIEW THIS TYPE AGAIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//@ts-expect-error (convertToModelMessages expects a ToolSet but only actually needs tools[name]?.toModelOutput)
tools,
},