diff --git a/tools/contentvariant.py b/tools/contentvariant.py index d930b52..af26b18 100644 --- a/tools/contentvariant.py +++ b/tools/contentvariant.py @@ -108,15 +108,8 @@ class ContentVariantTool(SimpleTool): "testing angles, and predicted audience responses." ) - # Build prompt text without mutating request object - prompt_text = "\n".join(prompt_parts) - - # Create a new request-like object with the prompt for chat-style preparation - # This avoids mutating the original request object - from copy import copy - request_copy = copy(request) - request_copy.prompt = prompt_text - return self.prepare_chat_style_prompt(request_copy) + # Return the complete prompt + return "\n".join(prompt_parts) def get_input_schema(self) -> dict: """Return the JSON schema for this tool's input""" diff --git a/tools/factcheck.py b/tools/factcheck.py index 8327e4d..9215acf 100644 --- a/tools/factcheck.py +++ b/tools/factcheck.py @@ -119,15 +119,8 @@ class FactCheckTool(SimpleTool): "evidence summary, confidence level, sources, and recommendations if needed." ) - # Build prompt text without mutating request object - prompt_text = "\n".join(prompt_parts) - - # Create a copy for chat-style preparation - from copy import copy - - request_copy = copy(request) - request_copy.prompt = prompt_text - return self.prepare_chat_style_prompt(request_copy) + # Return the complete prompt + return "\n".join(prompt_parts) def get_input_schema(self) -> dict: """Return the JSON schema for this tool's input""" diff --git a/tools/platformadapt.py b/tools/platformadapt.py index 8bdfb40..2938af5 100644 --- a/tools/platformadapt.py +++ b/tools/platformadapt.py @@ -120,15 +120,8 @@ class PlatformAdaptTool(SimpleTool): "adaptation rationale, and platform-specific optimizations applied." ) - # Build prompt text without mutating request object - prompt_text = "\n".join(prompt_parts) - - # Create a copy for chat-style preparation - from copy import copy - - request_copy = copy(request) - request_copy.prompt = prompt_text - return self.prepare_chat_style_prompt(request_copy) + # Return the complete prompt + return "\n".join(prompt_parts) def get_input_schema(self) -> dict: """Return the JSON schema for this tool's input""" diff --git a/tools/subjectlines.py b/tools/subjectlines.py index 2a8a9de..7e6bcde 100644 --- a/tools/subjectlines.py +++ b/tools/subjectlines.py @@ -122,15 +122,8 @@ class SubjectLinesTool(SimpleTool): "\n\nGroup by psychological angle, include character counts, A/B testing rationale, and make each line genuinely different." ) - # Build prompt text without mutating request object - prompt_text = "\n".join(prompt_parts) - - # Create a copy for chat-style preparation - from copy import copy - - request_copy = copy(request) - request_copy.prompt = prompt_text - return self.prepare_chat_style_prompt(request_copy) + # Return the complete prompt + return "\n".join(prompt_parts) def get_input_schema(self) -> dict: """Return the JSON schema for this tool's input"""