-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
unoplat-code-confluence/data_models/dspy/dspy_unoplat_codebase_summary.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
from pydantic import BaseModel,Field | ||
|
||
from data_models.dspy.dspy_unoplat_package_summary import DspyUnoplatPackageSummary | ||
|
||
class DspyUnoplatCodebaseSummary(BaseModel): | ||
codebase_summary: str = Field( description="A summary of the codebase") | ||
codebase_name: str = Field( description="The file id of the codebase summary") | ||
codebase_name: str = Field( description="The file id of the codebase summary") | ||
codebase_package: DspyUnoplatPackageSummary = Field( description="A summary of the codebase package") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
unoplat-code-confluence/data_models/dspy/dspy_unoplat_node_summary.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from typing import List | ||
from pydantic import BaseModel,Field | ||
|
||
from data_models.dspy.dspy_unoplat_function_summary import DspyUnoplatFunctionSummary | ||
|
||
class DspyUnoplatNodeSummary(BaseModel): | ||
node_name: str = Field( description="The name of the class") | ||
node_summary: str = Field( description="A summary of the class") | ||
node_summary: str = Field( description="A summary of the class") | ||
functions_summary: List[DspyUnoplatFunctionSummary] = Field( description="A list of functions in the class") |
13 changes: 11 additions & 2 deletions
13
unoplat-code-confluence/data_models/dspy/dspy_unoplat_package_summary.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
from typing import Dict | ||
from typing import Dict, List | ||
from pydantic import BaseModel,Field | ||
|
||
from data_models.dspy.dspy_unoplat_node_summary import DspyUnoplatNodeSummary | ||
|
||
|
||
|
||
|
||
class DspyUnoplatPackageNodeSummary(BaseModel): | ||
package_name: str = Field( description="The name of the package") | ||
class_summary: List[DspyUnoplatNodeSummary] = Field( description="List of the class summaries for the package") | ||
|
||
|
||
class DspyUnoplatPackageSummary(BaseModel): | ||
package_summary_dict: Dict[str, str] = Field( description="Dict to hold the summary of packages") | ||
package_summary_dict: Dict[str, DspyUnoplatPackageNodeSummary] = Field( description="Dict to hold the summary of packages") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters