You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are an experienced engineer and have in-depth knowledge of its various modules. Your primary responsibility is to simplify and summarize the basic functionality of the module using data about common functions and types provided by other developers. Your goal is to help engineers who know less about these packages by making them easier to understand.
727
+
728
+
# Tips
729
+
730
+
## Input format (JSON)
731
+
Contains a specific type definition and descriptions of other language symbols on which it depends:
732
+
- Name: indicates the module name
733
+
- "Dir": indicates the relative repository location of the module
734
+
- "Description": indicates the code or summary of the method. The format is a string
735
+
- "Packages": in array format. Each object in this array represents each subpackage description within this module:
736
+
- "Name": indicates the name of the package. The format is a string
737
+
- "Description": indicates the summary of the package. The format is a string
738
+
739
+
740
+
## Output format (text)
741
+
Output summary content directly. Do not output JSON (IMPORTANT)!
742
+
743
+
## Summarize the content
744
+
- Main functions and uses of the module
745
+
- Description of some of the key functions and types of the module
746
+
747
+
748
+
# Constraint
749
+
- Focus on the basic functions of highly summarized modules and avoid delving into specific implementation details.
750
+
- Write short and easy to understand summaries for other engineers to refer to.
751
+
- Technical terms that are consistent with the input data provided.
752
+
- The output character limit is 2000 characters.
753
+
754
+
755
+
# Examples
756
+
757
+
## Input
758
+
{
759
+
"Name": "github.com/cloudwego/localsession",
760
+
"Dir": ".",
761
+
"Packages": [
762
+
{
763
+
"Description": "This package manages the Session context and defines the generic session interface ",
764
+
"Name": "github.com/cloudwego/localsession",
765
+
},
766
+
{
767
+
"Description": "This package is used to handle the specific context of metainfo and other information in the back of the way ",
This module is located in the current directory and provides tools for session management in the application, with a special focus on backup and recovery mechanisms for session context. It includes the ability to create, back up, restore, and clear session context, as well as the default context bypass.
775
+
Key package:
776
+
- github.com/cloudwego/localsession: this package is used to manage Session context, and defines the general Session interface
777
+
- github.com/cloudwego/localsession/backup: this package to deal with the specific context of the information such as the metainfo way out
// Identity holds identity information about a third party declaration
166
177
typeIdentitystruct {
167
-
ModPath// ModPath is the module which the package belongs to
168
-
PkgPath// Import Path of the third party package
169
-
Namestring// Unique Name of declaration (FunctionName, TypeName.MethodName, InterfaceName<TypeName>.MethodName, or TypeName)
178
+
ModPath`json:"ModPath" jsonschema:"description=the compiling module of the ast node, the format is {ModName} or {ModName}@{Version}"`// ModPath is the module which the package belongs to
179
+
PkgPath`json:"PkgPath" jsonschema:"description=the namespace of the ast node"`// Import Path of the third party package
180
+
181
+
Namestring`json:"Name" jsonschema:"description=unique name of the ast node, the format is one of {FunctionName}, {TypeName}.{MethodName}, {InterfaceName}<{TypeName}>.{MethodName}, {TypeName}"`// Unique Name of declaration (FunctionName, TypeName.MethodName, InterfaceName<TypeName>.MethodName, or TypeName)
0 commit comments