From 60718565b784ee65c855b8d2550b6bdfa1c1f486 Mon Sep 17 00:00:00 2001 From: Matthieu Mordrel <80775308+MatthieuMordrel@users.noreply.github.com> Date: Tue, 8 Jul 2025 18:04:32 +0200 Subject: [PATCH] Updated generatedCopy to generatedCopy.text I believe the generatedCopy is the object that the AI SDK returns and we want to pass the text of the object rather in our template literal. --- docs/guides/ai-agents/generate-translate-copy.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/ai-agents/generate-translate-copy.mdx b/docs/guides/ai-agents/generate-translate-copy.mdx index 127cb028ea..4d555f10a2 100644 --- a/docs/guides/ai-agents/generate-translate-copy.mdx +++ b/docs/guides/ai-agents/generate-translate-copy.mdx @@ -80,7 +80,7 @@ export const generateAndTranslateTask = task({ }, { role: "user", - content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy}`, + content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy.text}`, }, ], experimental_telemetry: {