@@ -73,8 +73,7 @@ def __init__(self, settings: Settings) -> None:
73
73
{
74
74
"role" : "user" ,
75
75
"content" : [
76
- # TextBlockParam(type="text", text=DOCUMENTS.format(doc_content=self.get_docs()), cache_control={"type": "ephemeral"})
77
- TextBlockParam (type = "text" , text = DOCUMENTS .format (doc_content = "" ), cache_control = {"type" : "ephemeral" })
76
+ TextBlockParam (type = "text" , text = DOCUMENTS .format (doc_content = self .get_docs ()), cache_control = {"type" : "ephemeral" })
78
77
],
79
78
}
80
79
]
@@ -403,7 +402,7 @@ def _build_conversation_history(self, history_with_attachments: List[Dict[str, A
403
402
404
403
def _create_current_user_message (self , prompt : str , new_file_references : Optional [List [Dict [str , str ]]], user_id : str ) -> MessageParam :
405
404
"""Create the current user message with file attachments."""
406
- relevant_api_docs = "" # self.get_relevant_api_docs(prompt, user_id)
405
+ relevant_api_docs = self .get_relevant_api_docs (prompt , user_id )
407
406
prompt_with_docs = f"{ prompt } \n \n { relevant_api_docs } "
408
407
409
408
# Create current user message with any new file attachments
@@ -526,7 +525,7 @@ def process_message(
526
525
if history :
527
526
messages += history
528
527
529
- relevant_api_docs = "" # self.get_relevant_api_docs(prompt, user_id)
528
+ relevant_api_docs = self .get_relevant_api_docs (prompt , user_id )
530
529
prompt_with_docs = f"{ prompt } \n \n { relevant_api_docs } "
531
530
532
531
# Create user message with file attachments if present
0 commit comments