-
Notifications
You must be signed in to change notification settings - Fork 23
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
1 parent
37b6b14
commit cd526af
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from typing import Annotated | ||
|
||
from funcchain import chain, runnable | ||
from funcchain.syntax.params import Depends | ||
|
||
|
||
def get_relevant_files() -> str: | ||
""" | ||
Get the relevant files from the codebase tree. | ||
""" | ||
return "relevant_files" | ||
|
||
|
||
@runnable | ||
def codebase_answer( | ||
user_question: str, | ||
relevant_files: Annotated[str, Depends(get_relevant_files)], | ||
) -> str: | ||
""" | ||
Answer the question based on the codebase tree and relevant files. | ||
""" | ||
return chain() |