@@ -184,6 +184,7 @@ async def start_pair_programming(self):
184
184
convo = self .generate_iteration_convo_so_far (True )
185
185
convo .remove_last_x_messages (1 )
186
186
convo = convo .template ("problem_explanation" )
187
+ await self .ui .start_important_stream ()
187
188
initial_explanation = await llm (convo , temperature = 0.5 )
188
189
189
190
convo = convo .template ("data_about_logs" ).require_schema (ImportantLogsForDebugging )
@@ -236,23 +237,27 @@ async def start_pair_programming(self):
236
237
elif next_step .button == "question" :
237
238
user_response = await self .ask_question ("Oh, cool, what would you like to know?" )
238
239
convo = convo .template ("ask_a_question" , question = user_response .text )
240
+ await self .ui .start_important_stream ()
239
241
llm_answer = await llm (convo , temperature = 0.5 )
240
242
await self .send_message (llm_answer )
241
243
elif next_step .button == "tell_me_more" :
242
244
convo .template ("tell_me_more" )
245
+ await self .ui .start_important_stream ()
243
246
response = await llm (convo , temperature = 0.5 )
244
247
await self .send_message (response )
245
248
elif next_step .button == "other" :
246
249
# this is the same as "question" - we want to keep an option for users to click to understand if we're missing something with other options
247
250
user_response = await self .ask_question ("Let me know what you think..." )
248
251
convo = convo .template ("ask_a_question" , question = user_response .text )
252
+ await self .ui .start_important_stream ()
249
253
llm_answer = await llm (convo , temperature = 0.5 )
250
254
await self .send_message (llm_answer )
251
255
elif next_step .button == "solution_hint" :
252
256
human_hint_label = "Amazing!!! How do you think we can solve this bug?"
253
257
while True :
254
258
human_hint = await self .ask_question (human_hint_label )
255
259
convo = convo .template ("instructions_from_human_hint" , human_hint = human_hint .text )
260
+ await self .ui .start_important_stream ()
256
261
llm = self .get_llm (CHECK_LOGS_AGENT_NAME )
257
262
human_readable_instructions = await llm (convo , temperature = 0.5 )
258
263
human_approval = await self .ask_question (
@@ -270,6 +275,7 @@ async def start_pair_programming(self):
270
275
break
271
276
elif next_step .button == "tell_me_more" :
272
277
convo .template ("tell_me_more" )
278
+ await self .ui .start_important_stream ()
273
279
response = await llm (convo , temperature = 0.5 )
274
280
await self .send_message (response )
275
281
continue
0 commit comments