diff --git a/metagpt/actions/requirement_analysis/trd/evaluate_trd.py b/metagpt/actions/requirement_analysis/trd/evaluate_trd.py index da958609a..5c256ed07 100644 --- a/metagpt/actions/requirement_analysis/trd/evaluate_trd.py +++ b/metagpt/actions/requirement_analysis/trd/evaluate_trd.py @@ -92,7 +92,7 @@ PROMPT = """ --- You are a tool to evaluate the TRD design. -"Actor, System, External System" provides the possible participants in interaction events; +"Actor, System, External System" provides the all possible participants in interaction events; "User Requirements" provides the original requirements description, any parts not mentioned in this description will be handled by other modules, so do not fabricate requirements; "External Interaction Events" is provided by an external module for your use, its content is also referred to "Interaction Events" section; The content in "External Interaction Events" can be determined to be problem-free; "External Interaction Events" provides some identified interaction events and the interacting participants based on the part of the content of the "User Requirements"; @@ -103,9 +103,9 @@ Which interactions from "Interaction Events" correspond to which steps in "TRD D Which aspects of "TRD Design" and "Interaction Events" do not align with the descriptions in "User Requirements"? Please provide detailed descriptions and reasons. If the descriptions in "User Requirements" are divided into multiple steps in "TRD Design" and "Interaction Events," it can be considered compliant with the descriptions in "User Requirements" as long as it does not conflict with them; There is a possibility of missing details in the descriptions of "User Requirements". Any additional steps in "TRD Design" and "Interaction Events" are considered compliant with "User Requirements" as long as they do not conflict with the descriptions provided in "User Requirements"; -If there are interaction events with external systems in "TRD Design", you must explicitly specify the ID of the external interface to use for the interaction events; +If there are interaction events with external systems in "TRD Design", you must explicitly specify the ID of the external interface to use for the interaction events, the input and output parameters of the used external interface must explictly match the input and output of the interaction event; Does the sequence of steps in "Interaction Events" cause performance or cost issues? Please provide detailed descriptions and reasons; -It is problematic if the data stream composed of input/output contains passive or irrelevant data; +If each step of "TRD Design" has input data, its input data is provided either by the output of the previous steps or by participants of "Actor, System, External System", and there should be no passive data; Return a markdown JSON object with: - an "issues" key containing a string list of natural text about the issues that need to be addressed, found in the "TRD Design" if any exist, each issue found must provide a detailed description and include reasons; - a "conclusion" key containing the evaluation conclusion; diff --git a/tests/data/requirements/1.constraint.md b/tests/data/requirements/1.constraint.md index 1849335ca..307ee3c89 100644 --- a/tests/data/requirements/1.constraint.md +++ b/tests/data/requirements/1.constraint.md @@ -1,5 +1,7 @@ - Using pure javascript without any third-party package, 法务查询者与国际小超人钉钉小程序之间UI用web; +- 在README.md中列出你使用到的javascript工具,已经相应的配置文件名; - 法务中台网址:`https://mock.apipark.cn/m1/4717294-4369585-default`, 只有国际小超人钉钉小程序能访问; - 写代码时,不要单元测试代码; - 如果使用了接口 ID 6, 它的返回结果要去重复项; -- 不需要实现登录相关操作; \ No newline at end of file +- 不需要实现登录相关操作; +- 不需要实现切换语言的功能; \ No newline at end of file diff --git a/tests/data/requirements/1.txt b/tests/data/requirements/1.txt index ce2280138..615614098 100644 --- a/tests/data/requirements/1.txt +++ b/tests/data/requirements/1.txt @@ -13,7 +13,7 @@ #### 按国家名维度搜索 法务查询者在国际小超人钉钉小程序的搜索框中进行检索时采用typeahead,只能下拉选择法务中台中有的国家名称。 ![按国家名维度搜索](2.png) -在这张图像中,用户正在一个名为“法律意见查询”的应用中进行国家名称的搜索。用户在搜索框中输入国家名称时,系统会提供下拉建议。这些建议基于 typeahead 功能,从数据库中筛选出匹配的国家名称供用户选择。目前,搜索结果包含了“中国”和“菲律宾”两个具体的国家名称,其它显示为“国家名”。用户可以通过下拉菜单快速选择所需的国家名称。 +在这张图像中,用户正在一个名为“法律意见查询”的应用中进行国家名称的搜索。用户在搜索框中输入国家名称时,系统会提供下拉建议。这些建议基于 typeahead 功能,从法务中台中筛选出匹配的国家名称供用户选择。目前,搜索结果包含了“中国”和“菲律宾”两个具体的国家名称,其它显示为“国家名”。用户可以通过下拉菜单快速选择所需的国家名称。 #### 检索结果 法务查询者可根据国际小超人钉钉小程序UI上的滚筒切换业务线 @@ -22,4 +22,4 @@ 法务查询者从国家详情中的业务线名列表中选出要查看的业务线。 #### 查看法律意见详情 -国际小超人钉钉小程序用国家代码和业务代码做参数,查询法律意见详情,然后将结果展示给法务查询者。 \ No newline at end of file +国际小超人钉钉小程序用国家代码和业务代码做参数,查询法律意见详情,然后将法律意见详情展示给法务查询者。 \ No newline at end of file