const chat = new ChatYandexGPT({});// The assistant is set to translate English to French.const res = await chat.invoke([ new SystemMessage( "You are a helpful assistant that translates English to French." ), new HumanMessage("I love programming."),]); Copy
const chat = new ChatYandexGPT({});// The assistant is set to translate English to French.const res = await chat.invoke([ new SystemMessage( "You are a helpful assistant that translates English to French." ), new HumanMessage("I love programming."),]);
Optional
Example