
    TiX                     B    d dl mZ d dlmZ ddlmZmZ  G d de      Zy)    )List)ToolInfoJson   )BaseAgentConfigHandoffConfigc                   8     e Zd ZdZddee   deddf fdZ xZS )ImageDesignerAgentConfigu5   图像设计智能体 - 专门负责图像生成
    	tool_listsystem_promptreturnNc                 P    d}d}||z   |z   }dddg}t         |   d|||       y )Nu  

BATCH GENERATION RULES:
- If user needs >10 images: Generate in batches of max 10 images each
- Complete each batch before starting next batch
- Example for 20 images: Batch 1 (1-10) → "Batch 1 done!" → Batch 2 (11-20) → "All 20 images completed!"

a'  

ERROR HANDLING INSTRUCTIONS:
When image generation fails, you MUST:
1. Acknowledge the failure and explain the specific reason to the user
2. If the error mentions "sensitive content" or "flagged content", advise the user to:
   - Use more appropriate and less sensitive descriptions
   - Avoid potentially controversial, violent, or inappropriate content
   - Try rephrasing with more neutral language
3. If it's an API error (HTTP 500, etc.), suggest:
   - Trying again in a moment
   - Using different wording in the prompt
   - Checking if the service is temporarily unavailable
4. Always provide helpful suggestions for alternative approaches
5. Maintain a supportive and professional tone

IMPORTANT: Never ignore tool errors. Always respond to failed tool calls with helpful guidance for the user.
video_designerz
                        Transfer user to the video_designer. If user wants to generate video, transfer to video_designer.
                        )
agent_namedescriptionimage_designer)nametoolsr   handoffs)super__init__)selfr
   r   batch_generation_prompterror_handling_promptfull_system_promptr   	__class__s          r/home/jay/workspace/tools/ai-image-gen/jaaz-app/server/services/langgraph_service/configs/image_designer_config.pyr   z!ImageDesignerAgentConfig.__init__
   sa    #!& +#$&;< / )
 	!,	 	 	
    ) )	__name__
__module____qualname____doc__r   r   strr   __classcell__)r   s   @r   r	   r	      s-    /
$|"4 /
S /
RV /
 /
r   r	   N)typingr   models.tool_modelr   base_configr   r   r	    r   r   <module>r)      s     * 73
 3
r   