Skip to content

Commit bc56beb

Browse files
add type checking to prompt template
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 808c1ac commit bc56beb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wdoc/utils/prompts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from pydantic import BaseModel, Field, model_validator
1414
from loguru import logger
1515

16+
from wdoc.utils.typechecker import optional_typecheck
1617
from wdoc.utils.misc import get_tkn_length
1718

1819
# PROMPT FOR SUMMARY TASKS
@@ -311,6 +312,7 @@ def remove_thoughts(cls, values) -> List[str]:
311312
)
312313

313314

315+
@optional_typecheck
314316
class Prompts_class:
315317
evaluate: ChatPromptTemplate
316318
answer: ChatPromptTemplate

0 commit comments

Comments
 (0)