add-pattern
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseadd-pattern
add-pattern
Instructions
说明
When you learn a new Langroid design pattern, do the following:
-
Add an entry in the siblingfile 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
patterns/SKILL.mdpointer to a markdown DOCUMENT in the- Reference:directory.patterns/IMPORTANT - The DESCRIPTION should be clear enough that future YOU can effectively use it to MATCH design problems you may encounter in future. -
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设计模式时,请执行以下操作:
-
在同级目录的文件中合适的分类部分添加一条记录,内容包含该模式的目标描述(即它能让你实现什么功能),同时附上一个指向
patterns/SKILL.md目录下某份markdown文档的patterns/链接。- Reference:重要提示 - 描述内容应足够清晰,以便未来的你能有效地将其与未来可能遇到的设计问题进行匹配。 -
在上述文档中,描述实现思路并附上代码示例。请遵循现有模式文件的格式(问题、解决方案、完整代码示例、关键点、适用场景)。