How to manually pass the chat conversation history?

I’m trying to manually pass my conversation history to the function that makes the request to the AI:

This is a history that I automatically save serialized in json of this object here:

I fill this object, I save an array of this object in json and when I make a request to the AI, I pass this object as a parameter and the AI’s response will be iterated over this object and saved in json again, this is my objective however when I pass this object even if empty, it returns the following error:

This array that I’m pointing to with the blue arrow is the array that I’m passing as a parameter to the run_V2 function, as I haven’t added anything to the array it’s still empty, does anyone know what the possible cause of this problem is? I really need it, thank you in advance