add-pattern

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

add-pattern

add-pattern

Instructions

说明

When you learn a new Langroid design pattern, do the following:
  1. Add an entry in the sibling
    patterns/SKILL.md
    file in the appropriate category section, containing a DESCRIPTION of the goal of the pattern (i.e. what it enables you to implement), accompanied by a
    - Reference:
    pointer to a markdown DOCUMENT in the
    patterns/
    directory.
    IMPORTANT - The DESCRIPTION should be clear enough that future YOU can effectively use it to MATCH design problems you may encounter in future.
  2. In that DOCUMENT, describe the idea of the implementation along with code examples. Follow the format of existing pattern files (Problem, Solution, Complete Code Example, Key Points, When to Use).
当你学习到一种新的Langroid设计模式时,请执行以下操作:
  1. 在同级目录的
    patterns/SKILL.md
    文件中合适的分类部分添加一条记录,内容包含该模式的目标描述(即它能让你实现什么功能),同时附上一个指向
    patterns/
    目录下某份markdown文档的
    - Reference:
    链接。
    重要提示 - 描述内容应足够清晰,以便未来的你能有效地将其与未来可能遇到的设计问题进行匹配。
  2. 在上述文档中,描述实现思路并附上代码示例。请遵循现有模式文件的格式(问题、解决方案、完整代码示例、关键点、适用场景)。