@@ -88,11 +88,17 @@ async def build_workflow(
8888
8989 try :
9090 # STEP 1: Load conversation history and format as context string
91- conversation_history = await conversation_service .get_conversation_history (session_id )
92- history_context = conversation_service .format_conversation_history_as_context (conversation_history )
91+ conversation_history = await conversation_service .get_conversation_history (
92+ session_id
93+ )
94+ history_context = conversation_service .format_conversation_history_as_context (
95+ conversation_history
96+ )
9397
9498 # Combine user-provided context with conversation history
95- combined_context = f"{ context } \n \n { history_context } " .strip () if context else history_context
99+ combined_context = (
100+ f"{ context } \n \n { history_context } " .strip () if context else history_context
101+ )
96102
97103 # STEP 2: Create system and user messages with formatted context
98104 system_vars = WorkflowGuidanceSystemVars (
@@ -515,7 +521,7 @@ async def judge_coding_plan(
515521 log_tool_execution (
516522 "judge_coding_plan" ,
517523 session_id ,
518- f"Plan: { plan } \n User Requirements: { user_requirements } "
524+ f"Plan: { plan } \n User Requirements: { user_requirements } " ,
519525 )
520526
521527 # Handle default value for research_urls
@@ -554,8 +560,12 @@ async def judge_coding_plan(
554560
555561 try :
556562 # STEP 1: Load conversation history and format as context string
557- conversation_history = await conversation_service .get_conversation_history (session_id )
558- history_context = conversation_service .format_conversation_history_as_context (conversation_history )
563+ conversation_history = await conversation_service .get_conversation_history (
564+ session_id
565+ )
566+ history_context = conversation_service .format_conversation_history_as_context (
567+ conversation_history
568+ )
559569
560570 # STEP 2: Use helper function for main evaluation with formatted conversation history
561571 evaluation_result = await _evaluate_coding_plan (
@@ -633,8 +643,12 @@ async def judge_code_change(
633643
634644 try :
635645 # STEP 1: Load conversation history and format as context string
636- conversation_history = await conversation_service .get_conversation_history (session_id )
637- history_context = conversation_service .format_conversation_history_as_context (conversation_history )
646+ conversation_history = await conversation_service .get_conversation_history (
647+ session_id
648+ )
649+ history_context = conversation_service .format_conversation_history_as_context (
650+ conversation_history
651+ )
638652
639653 # STEP 2: Create system and user messages with formatted context
640654 system_vars = JudgeCodeChangeSystemVars (
0 commit comments