-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from unoplat/102-feat-introduce-n-depth-packa…
…ge-level-comprehensions-and-only-use-root-package-summary-for-codebase-comprehension 102 feat introduce n depth package level comprehensions and only use root package summary for codebase comprehension
- Loading branch information
Showing
18 changed files
with
337 additions
and
120 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
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
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
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
7 changes: 3 additions & 4 deletions
7
...code-confluence/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,12 +1,11 @@ | ||
from typing import Optional | ||
from typing import Dict, Optional | ||
from pydantic import BaseModel,Field | ||
|
||
from unoplat_code_confluence.data_models.dspy.dspy_unoplat_package_summary import DspyUnoplatPackageSummary | ||
|
||
class DspyUnoplatCodebaseSummary(BaseModel): | ||
codebase_summary: Optional[str] = Field(default=None, description="A summary of the codebase") | ||
|
||
codebase_objective: Optional[str] = Field(default=None, description="The objective of the codebase") | ||
|
||
metadata: Optional[dict] = Field(default=None, description="The metadata of the codebase") | ||
codebase_name: Optional[str] = Field( default=None,description="The file id of the codebase summary") | ||
codebase_package: Optional[DspyUnoplatPackageSummary] = Field(default=None,description="A summary of the codebase package") | ||
codebase_package: Optional[Dict[str,DspyUnoplatPackageSummary]] = Field(default_factory=dict,description="A summary of the codebase package") |
4 changes: 3 additions & 1 deletion
4
...code-confluence/unoplat_code_confluence/data_models/dspy/dspy_unoplat_function_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,9 @@ | ||
from typing import Optional | ||
from pydantic import BaseModel,Field | ||
|
||
from unoplat_code_confluence.data_models.dspy.dspy_o_function_summary import DspyFunctionSummary | ||
|
||
class DspyUnoplatFunctionSummary(BaseModel): | ||
function_name: str = Field( alias="FunctionName", description="The name of the function") | ||
function_summary: DspyFunctionSummary = Field( alias="FunctionSummary", description="A summary of the function") | ||
function_summary: DspyFunctionSummary = Field( alias="FunctionSummary", description="A summary of the function") | ||
metadata: Optional[dict] = Field(default=None, description="Additional metadata for the function") |
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
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
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
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
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
42 changes: 28 additions & 14 deletions
42
unoplat-code-confluence/unoplat_code_confluence/dspy_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
Oops, something went wrong.