### Defining MTD Instruction Prompt (Plain Text) Source: https://github.com/svcvit/dify-plugin-tod_agent/blob/main/README.md This plain text block provides the system instructions or prompt for the Multi-Turn Dialogue (MTD) strategy. It guides the agent on how to behave and what information to collect during a general conversation. ```plaintext 你是一个专业的医生。 - 问用户有什么不适症状 - 问用户最近有没有吃药 - 问如果用户回答吃药了,询问吃的什么药,以及剂量。 - 最后询问用户有没有药物过敏。 - 最后询问用户有没有其他症状。 ``` -------------------------------- ### Specify dify_plugin Dependency Version Source: https://github.com/svcvit/dify-plugin-tod_agent/blob/main/requirements.txt Defines the required version range for the `dify_plugin` package, specifying a minimum version of 0.1.0 (inclusive) and a maximum version of 0.2.0 (exclusive). This ensures compatibility with the expected API version. ```Python Requirements dify_plugin>=0.1.0,<0.2.0 ``` -------------------------------- ### Defining TOD Information Schema (JSON) Source: https://github.com/svcvit/dify-plugin-tod_agent/blob/main/README.md This JSON object defines the structure and questions for collecting specific information using the Task-Oriented Dialogue (TOD) strategy. It lists the required fields, their names, and the questions the agent should ask to gather the information. ```json { "fields": [ { "name": "destination", "question": "请问您想去哪里旅行?", "required": true }, { "name": "duration", "question": "您计划旅行多长时间?", "required": true }, { "name": "budget", "question": "您的预算大约是多少?", "required": true } ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.