
    Ti                     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                   2     e Zd ZdZdee   ddf fdZ xZS )VideoDesignerAgentConfigu5   视频设计智能体 - 专门负责视频生成
    	tool_listreturnNc                 J    d}d}||z   }dddg}t         |   d|||       y )Na  
You are a video designer. You are responsible for generating videos based on user request. You can generate video from text prompt and images.

VIDEO GENERATION RULES:
- Generate high-quality videos based on user prompts
- Use detailed, cinematic descriptions for better results
- Consider aspect ratio, duration, and resolution requirements
- Provide clear feedback on video generation progress
- If user provides an image, use it as the first frame when possible

a'  

ERROR HANDLING INSTRUCTIONS:
When video 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.
image_designerz
                        Transfer user to the image_designer. About this agent: Specialize in generating images.
                        )
agent_namedescriptionvideo_designer)nametoolssystem_prompthandoffs)super__init__)selfr
   video_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/video_designer_config.pyr   z!VideoDesignerAgentConfig.__init__
   sW    
#!& 57LL
 / )
 	!,	 	 	
    )__name__
__module____qualname____doc__r   r   r   __classcell__)r   s   @r   r	   r	      s%    1
$|"4 1
 1
 1
r   r	   N)typingr   models.tool_modelr   base_configr   r   r	    r   r   <module>r'      s     * 75
 5
r   