-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into COG-697-ingest-non-code-files
- Loading branch information
Showing
3 changed files
with
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from cognee.shared.data_models import SummarizedCode, SummarizedClass, SummarizedFunction | ||
|
||
def get_mock_summarized_code() -> SummarizedCode: | ||
return SummarizedCode( | ||
file_name="mock_file.py", | ||
high_level_summary="This is a mock high-level summary.", | ||
key_features=["Mock feature 1", "Mock feature 2"], | ||
imports=["mock_import1", "mock_import2"], | ||
constants=["MOCK_CONSTANT = 'mock_value'"], | ||
classes=[ | ||
SummarizedClass( | ||
name="MockClass", | ||
description="This is a mock description of the MockClass.", | ||
methods=[ | ||
SummarizedFunction( | ||
name="mock_method", | ||
description="This is a description of the mock method.", | ||
docstring="This is a mock method.", | ||
inputs=["mock_input: str"], | ||
outputs=["mock_output: str"], | ||
decorators=None, | ||
) | ||
], | ||
) | ||
], | ||
functions=[ | ||
SummarizedFunction( | ||
name="mock_function", | ||
description="This is a description of the mock function.", | ||
docstring="This is a mock function.", | ||
inputs=["mock_input: str"], | ||
outputs=["mock_output: str"], | ||
decorators=None, | ||
) | ||
], | ||
workflow_description="This is a mock workflow description.", | ||
) |