
    hb                        S r SSKr " S S5      r\S:X  a  \" S5        \" 5       r\" S5        \R                  SS	5      r\S
    H  r\" S\ 35        M     \" S5        \R                  S5      r\" S\S    35        \" S5        \R                  SS	5      r\S    H  r\" S\ 35        M     \" S5        \" S5        \" S5        \" S5        \" S5        \" S5        gg)z9
Creative Generator - Generate ideas, content, solutions
    Nc                   >    \ rS rSrS rS	S jrS
S jrS	S jrS rSr	g)CreativeGenerator   c                     / U l         g )Ngenerations)selfs    H/home/james-whalen/eden-agi-project/core/reasoning/creative_generator.py__init__CreativeGenerator.__init__   s
        c           	          SU S3SU S3SU S3U S3SU 3S	U S
3SU S3U S3/n[         R                  " U[        U[        U5      5      5      nXAS.$ )z#Generate creative ideas for a topiczWhat if we combined z with automation?zA new approach to z	 using AIzReimagining z for the modern agez meets sustainable technologyzDisruptive innovation in zThe future of z in 10 yearszHow to make z more accessiblez for social good)ideastopicrandomsampleminlen)r	   r   countidea_templatesr   s        r
   generate_ideas CreativeGenerator.generate_ideas
   s     #5'):; y15'!45g23'w/UG<05'!12g%&	
 nc%^9L.MN//r   c                     / SQn/ SQn/ SQn[         R                  " U5      n[         R                  " U5      n[         R                  " U5      nSU SU SU S3nXS.$ )	zGenerate a story premise)	scientistengineerzAI researcherexplorerinventor)zdiscovers breakthroughzfaces ethical dilemmazuncovers conspiracyzprevents disasterzmakes impossible choice)znear futurezspace stationzresearch labzdigital worldzparallel universezA z in a  .)premisegenrer   choice)	r	   r"   
characters	conflictssettingscharconflictsettingr!   s	            r
   generate_story_premise(CreativeGenerator.generate_story_premise   sa    W
D	i}}Z(==+--)tfF7)1XJa8"33r   c           	          SU S3SU 3SU 3SU 3SU S3SU 3S	U 3S
U 3/n[         R                  " U[        U[        U5      5      5      nXAS.$ )z!Brainstorm solutions to a problemzBreak z into smaller sub-problemszApply automation to z Use data analysis to understand zCollaborate with experts on zFind analogies to z in other domainszSimplify the approach to zUse iterative improvement for z#Apply first principles thinking to )	solutionsproblemr   )r	   r/   r   
approachesr.   s        r
   brainstorm_solutions&CreativeGenerator.brainstorm_solutions*   s     WI78"7),.wi8*7)4 	):;'y1,WI61';	

 MM*c%Z.IJ	&;;r   c                 x    / SQn/ SQn[         R                  " U5       S[         R                  " U5       3nXAS.$ )z Generate a creative project name)Project	Operation
InitiativeSystem)
PhoenixNexusQuantumAtlasZenithHorizonCatalystGenesisNovaVectorr   )namedescriptionr#   )r	   rC   prefixeswordsrB   s        r
   generate_project_name'CreativeGenerator.generate_project_name;   s>    CD --)*!FMM%,@+AB99r   r   N)   )sci-fi)
__name__
__module____qualname____firstlineno__r   r   r+   r1   rF   __static_attributes__ r   r
   r   r      s    0"4<":r   r   __main__zCREATIVE GENERATOR TESTu'   
💡 Generating ideas for 'education':	education   r   z   - u   
📖 Story premise:rI   z   r!   u%   
🔧 Solutions for 'climate change':zclimate changer.   u   
✨ Eden can now:z   - Generate creative ideasz   - Create story premisesz   - Brainstorm solutionsz   - Generate project namesu#   
✅ CREATIVE GENERATOR OPERATIONAL)__doc__r   r   rJ   printcreativer   resultidear+   r1   solrO   r   r
   <module>rY      s   =: =:~ z	
#$ "H 

45$$[!4FwdVn   

!",,X6F	Cy!"
#$ 

23**+;Q?Fk"cUm # 

 	
()	
&'	
%&	
'(	
019 r   