refactor: update notations

This commit is contained in:
莘权 马 2023-11-03 13:40:48 +08:00
parent 55fe826b06
commit 78f3f128c0
8 changed files with 17 additions and 7 deletions

View file

@ -4,7 +4,8 @@
@Time : 2023/5/12 13:05
@Author : alexanderwu
@File : mock.py
@Modified By: mashenquan, 2023-11-1. Standardize the usage of message filtering-related features.
@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of
the `cause_by` value in the `Message` to a string to support the new message distribution feature.
"""
from metagpt.actions import BossRequirement, WriteDesign, WritePRD, WriteTasks
from metagpt.schema import Message

View file

@ -4,7 +4,9 @@
@Time : 2023/5/20 14:37
@Author : alexanderwu
@File : test_architect.py
@Modified By: mashenquan, 2023-11-1. Standardize the usage of message transmission.
@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data
type of the `cause_by` value in the `Message` to a string, and utilize the new message distribution
feature for message handling.
"""
import pytest

View file

@ -4,7 +4,9 @@
@Time : 2023/5/12 10:14
@Author : alexanderwu
@File : test_engineer.py
@Modified By: mashenquan, 2023-11-1. Standardize the usage of message transmission.
@Modified By: mashenquan, 2023-11-1. In accordance with Chapter 2.2.1 and 2.2.2 of RFC 116, modify the data
type of the `cause_by` value in the `Message` to a string, and utilize the new message distribution
feature for message handling.
"""
import pytest

View file

@ -4,7 +4,8 @@
@Time : 2023/5/12 00:47
@Author : alexanderwu
@File : test_environment.py
@Modified By: mashenquan, 2023-11-1. Standardize the usage of message transmission.
@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of
the `cause_by` value in the `Message` to a string to support the new message distribution feature.
"""
import pytest

View file

@ -4,6 +4,7 @@
@Time : 2023/5/16 10:57
@Author : alexanderwu
@File : test_message.py
@Modified By: mashenquan, 2023-11-1. Modify coding style.
"""
import pytest

View file

@ -4,7 +4,8 @@
@Time : 2023/5/11 14:44
@Author : alexanderwu
@File : test_role.py
@Modified By: mashenquan, 2023/11/1. Add unit tests.
@Modified By: mashenquan, 2023-11-1. In line with Chapter 2.2.1 and 2.2.2 of RFC 116, introduce unit tests for
the utilization of the new message distribution feature in message handling.
"""
import pytest
from pydantic import BaseModel

View file

@ -4,7 +4,8 @@
@Time : 2023/5/20 10:40
@Author : alexanderwu
@File : test_schema.py
@Modified By: mashenquan, 2023-11-1. Add `test_message`.
@Modified By: mashenquan, 2023-11-1. In line with Chapter 2.2.1 and 2.2.2 of RFC 116, introduce unit tests for
the utilization of the new feature of `Message` class.
"""
import json

View file

@ -2,7 +2,8 @@
# -*- coding: utf-8 -*-
"""
@Desc : the unittest of serialize
@Modified By: mashenquan, 2023-11-1. Standardize the usage of message filtering-related features.
@Modified By: mashenquan, 2023-11-1. According to Chapter 2.2.1 and 2.2.2 of RFC 116, change the data type of
the `cause_by` value in the `Message` to a string to support the new message distribution feature.
"""
from typing import List, Tuple