This skill can, according to the user's requirements, generate VeADK Agent code that meets the requirements, or complete VeADK-related functionality.
Trigger Conditions
- The user briefly describes their functional requirements and wants to build an Agent to accomplish them;
- The user wants to convert existing Langchain/Langgraph code into VeADK Agent code
- The user wants to convert an existing Dify workflow into VeADK Agent code
Specific Steps
Below are the different component capabilities of this skill.
Generate an Agent Directly Based on Requirements
Please follow these steps:
- Analyze the user's requirements and generate the corresponding Agent system structure, refer to
references/generator/analyze.md - Prompt optimization, refer to
references/generator/refine_prompt.md - Generate Agent code, refer to
references/generator/coding.md
Convert Langchain Code to a VeADK Agent
Please follow these steps:
- Analyze the original Langchain or Langgraph code
- Change the original code to a VeADK Agent; for the corresponding relationships, see
references/converter/langchain_rules.md - Refer to
references/common/the documents in the directory to generate VeADK code
Convert a Dify Workflow to a VeADK Agent
Please follow these steps:
- Analyze the original Dify workflow DSL (generally a YAML-format file)
- Change the original code to a VeADK Agent; for the corresponding relationships, see
references/converter/dify_rules.md - Refer to
references/common/the documents in the directory to generate VeADK code
Follow-up Work
After completing the Agent code writing, call the script to save the code artifacts:
agent_name/__init__.py: The fixed content isfrom . import agent # noqaagent_name/agent.py: Contains the code for all agents
Among them,agent_name is the name of the Agent you consider appropriate.
The script invocation method is:
python save_file.py --path ... --content ...