Fix Python syntax errors in agent files

Fixed 4 critical syntax errors found in recently merged agent files:

1. security_policy_generator.py:309 - Fixed mismatched bracket (} → ])
   for 'recommendations' list closing

2. mfa_manager.py:221 - Fixed mismatched bracket (} → ]) for
   'recommendations' list closing

3. press_release_writer.py:80,91,93 - Fixed f-string backslash errors
   by using double quotes for f-strings containing apostrophes

4. image_generator_prompt.py:192 - Fixed mismatched bracket (} → ])
   for 'stable_diffusion' list closing

All Python files now compile successfully.
This commit is contained in:
Claude
2025-11-17 06:04:40 +00:00
parent 0c7dbe7e47
commit 28bbee7089
4 changed files with 6 additions and 6 deletions

View File

@@ -189,7 +189,7 @@ class ImageGeneratorPromptAgent(BaseAgent):
'Lower CFG scale for more creativity', 'Lower CFG scale for more creativity',
'Higher steps for better quality', 'Higher steps for better quality',
'Use embeddings and LoRAs for specific styles' 'Use embeddings and LoRAs for specific styles'
} ]
}, },
'quality_keywords': [ 'quality_keywords': [
'8k resolution', '8k resolution',

View File

@@ -77,7 +77,7 @@ class PressReleaseWriterAgent(BaseAgent):
City, State — {key_details.get('date', 'January 15, 2025')}{company_name}, {key_details.get('company_description', 'a leading technology company')}, today announced {key_details.get('announcement', 'a major initiative')} that {key_details.get('impact', 'will transform the industry')}. City, State — {key_details.get('date', 'January 15, 2025')}{company_name}, {key_details.get('company_description', 'a leading technology company')}, today announced {key_details.get('announcement', 'a major initiative')} that {key_details.get('impact', 'will transform the industry')}.
{key_details.get('lead_paragraph', f'This groundbreaking {announcement_type} represents a significant milestone for {company_name} and demonstrates the company\'s commitment to innovation and excellence. The announcement comes at a time when the industry is experiencing rapid growth and transformation.')} {key_details.get('lead_paragraph', f"This groundbreaking {announcement_type} represents a significant milestone for {company_name} and demonstrates the company's commitment to innovation and excellence. The announcement comes at a time when the industry is experiencing rapid growth and transformation.")}
"{quotes[0].get('text', 'We are thrilled to make this announcement') if quotes else 'This is an exciting development for our company'}," said {quotes[0].get('attribution', 'CEO') if quotes else 'the company spokesperson'}. "{quotes[0].get('text_continued', 'This demonstrates our commitment to delivering exceptional value to our customers and stakeholders.') if quotes else ''}" "{quotes[0].get('text', 'We are thrilled to make this announcement') if quotes else 'This is an exciting development for our company'}," said {quotes[0].get('attribution', 'CEO') if quotes else 'the company spokesperson'}. "{quotes[0].get('text_continued', 'This demonstrates our commitment to delivering exceptional value to our customers and stakeholders.') if quotes else ''}"
@@ -88,9 +88,9 @@ Key highlights include:
{key_details.get('highlight_3', 'Significant market impact')} {key_details.get('highlight_3', 'Significant market impact')}
{key_details.get('highlight_4', 'Long-term strategic value')} {key_details.get('highlight_4', 'Long-term strategic value')}
{key_details.get('detail_paragraph', f'The {announcement_type} builds on {company_name}\'s strong foundation of innovation and customer-focused solutions. With this announcement, the company continues to position itself as an industry leader, delivering cutting-edge solutions that address real-world challenges.')} {key_details.get('detail_paragraph', f"The {announcement_type} builds on {company_name}'s strong foundation of innovation and customer-focused solutions. With this announcement, the company continues to position itself as an industry leader, delivering cutting-edge solutions that address real-world challenges.")}
"{quotes[1].get('text', 'This represents a major step forward') if len(quotes) > 1 else 'We believe this will have a lasting positive impact'}," added {quotes[1].get('attribution', 'Chief Product Officer') if len(quotes) > 1 else 'another company executive'}. "{quotes[1].get('text_continued', 'Our team has worked tirelessly to bring this to fruition, and we\'re excited to share it with the market.') if len(quotes) > 1 else ''}" "{quotes[1].get('text', 'This represents a major step forward') if len(quotes) > 1 else 'We believe this will have a lasting positive impact'}," added {quotes[1].get('attribution', 'Chief Product Officer') if len(quotes) > 1 else 'another company executive'}. "{quotes[1].get('text_continued', "Our team has worked tirelessly to bring this to fruition, and we're excited to share it with the market.") if len(quotes) > 1 else ''}"
{key_details.get('availability', f'The {announcement_type} will be available beginning {key_details.get("launch_date", "Q1 2025")}.')} For more information, visit {key_details.get('website', 'www.company.com')} or contact the media relations team at the information provided below. {key_details.get('availability', f'The {announcement_type} will be available beginning {key_details.get("launch_date", "Q1 2025")}.')} For more information, visit {key_details.get('website', 'www.company.com')} or contact the media relations team at the information provided below.

View File

@@ -218,7 +218,7 @@ class MFAManagerAgent(BaseAgent):
'Monitor MFA bypass attempts', 'Monitor MFA bypass attempts',
'Regular MFA compliance audits', 'Regular MFA compliance audits',
'User training on MFA importance' 'User training on MFA importance'
}, ],
'best_practices': [ 'best_practices': [
'Require MFA for all administrative accounts', 'Require MFA for all administrative accounts',
'Use TOTP or hardware tokens over SMS', 'Use TOTP or hardware tokens over SMS',

View File

@@ -306,7 +306,7 @@ class SecurityPolicyGeneratorAgent(BaseAgent):
'Set up automated policy review reminders', 'Set up automated policy review reminders',
'Create policy exception process', 'Create policy exception process',
'Establish policy governance committee' 'Establish policy governance committee'
}, ],
'supporting_documents': { 'supporting_documents': {
'templates': [ 'templates': [
'Risk Assessment Template', 'Risk Assessment Template',