mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 06:57:17 -05:00
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:
@@ -189,7 +189,7 @@ class ImageGeneratorPromptAgent(BaseAgent):
|
||||
'Lower CFG scale for more creativity',
|
||||
'Higher steps for better quality',
|
||||
'Use embeddings and LoRAs for specific styles'
|
||||
}
|
||||
]
|
||||
},
|
||||
'quality_keywords': [
|
||||
'8k resolution',
|
||||
|
||||
@@ -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')}.
|
||||
|
||||
{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 ''}"
|
||||
|
||||
@@ -88,9 +88,9 @@ Key highlights include:
|
||||
• {key_details.get('highlight_3', 'Significant market impact')}
|
||||
• {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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user