From 2a3ebe5164e261b8824c35b2004de5ab1ad8030e Mon Sep 17 00:00:00 2001 From: 0xrdan <0xrdan@users.noreply.github.com> Date: Tue, 6 Jan 2026 19:26:47 +0000 Subject: [PATCH] Fix missing f-string prefix in TASK_DESCRIPTION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #10 The Legal example's TASK_DESCRIPTION contained {QUESTION} but was missing the `f` prefix, so the variable was never interpolated. Changed in all three notebook variants: - Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb (2 occurrences) - AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb (2 occurrences) - AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb (2 occurrences) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb | 4 ++-- AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb | 4 ++-- Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb b/AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb index eecdf3c..4941f82 100755 --- a/AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb +++ b/AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb @@ -326,7 +326,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n", @@ -1140,7 +1140,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n", diff --git a/AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb b/AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb index f4aae6c..de0c903 100755 --- a/AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb +++ b/AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb @@ -332,7 +332,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n", @@ -1146,7 +1146,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n", diff --git a/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb b/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb index 2b20ae2..bb3498b 100644 --- a/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb +++ b/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb @@ -320,7 +320,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n", @@ -1134,7 +1134,7 @@ "# Expand on the specific tasks you want Claude to do, as well as any rules that Claude might have to follow.\n", "# This is also where you can give Claude an \"out\" if it doesn't have an answer or doesn't know.\n", "# It's ideal to show this description and rules to a friend to make sure it is laid out logically and that any ambiguous words are clearly defined.\n", - "TASK_DESCRIPTION = \"\"\"Write a clear, concise answer to this question:\n", + "TASK_DESCRIPTION = f\"\"\"Write a clear, concise answer to this question:\n", "\n", "\n", "{QUESTION}\n",