@@ -218,9 +218,9 @@ def on_llm_start(
218218 prompts : list [str ],
219219 * ,
220220 run_id : UUID ,
221- parent_run_id : UUID | None = None ,
222- tags : Optional [list [str ]] | None = None ,
223- metadata : Optional [dict [str , Any ]] | None = None ,
221+ parent_run_id : Optional [ UUID ] = None ,
222+ tags : Optional [list [str ]] = None ,
223+ metadata : Optional [dict [str , Any ]] = None ,
224224 ** kwargs : Any ,
225225 ):
226226 if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -254,8 +254,8 @@ def on_llm_end(
254254 response : LLMResult ,
255255 * ,
256256 run_id : UUID ,
257- parent_run_id : UUID | None = None ,
258- tags : Optional [list [str ]] | None = None ,
257+ parent_run_id : Optional [ UUID ] = None ,
258+ tags : Optional [list [str ]] = None ,
259259 ** kwargs : Any ,
260260 ):
261261 if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -302,8 +302,8 @@ def on_llm_error(
302302 error : BaseException ,
303303 * ,
304304 run_id : UUID ,
305- parent_run_id : UUID | None = None ,
306- tags : Optional [list [str ]] | None = None ,
305+ parent_run_id : Optional [ UUID ] = None ,
306+ tags : Optional [list [str ]] = None ,
307307 ** kwargs : Any ,
308308 ):
309309 self ._handle_error (error , run_id , parent_run_id , ** kwargs )
@@ -314,9 +314,9 @@ def on_chain_start(
314314 inputs : dict [str , Any ],
315315 * ,
316316 run_id : UUID ,
317- parent_run_id : UUID | None = None ,
318- tags : Optional [list [str ]] | None = None ,
319- metadata : Optional [dict [str , Any ]] | None = None ,
317+ parent_run_id : Optional [ UUID ] = None ,
318+ tags : Optional [list [str ]] = None ,
319+ metadata : Optional [dict [str , Any ]] = None ,
320320 ** kwargs : Any ,
321321 ):
322322 if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -342,8 +342,8 @@ def on_chain_end(
342342 outputs : dict [str , Any ],
343343 * ,
344344 run_id : UUID ,
345- parent_run_id : UUID | None = None ,
346- tags : list [str ] | None = None ,
345+ parent_run_id : Optional [ UUID ] = None ,
346+ tags : Optional [ list [str ]] = None ,
347347 ** kwargs : Any ,
348348 ):
349349
@@ -359,8 +359,8 @@ def on_chain_error(
359359 self ,
360360 error : BaseException ,
361361 run_id : UUID ,
362- parent_run_id : UUID | None = None ,
363- tags : Optional [list [str ]] | None = None ,
362+ parent_run_id : Optional [ UUID ] = None ,
363+ tags : Optional [list [str ]] = None ,
364364 ** kwargs : Any ,
365365 ):
366366 self ._handle_error (error , run_id , parent_run_id , ** kwargs )
@@ -371,10 +371,10 @@ def on_tool_start(
371371 input_str : str ,
372372 * ,
373373 run_id : UUID ,
374- parent_run_id : UUID | None = None ,
375- tags : list [str ] | None = None ,
376- metadata : dict [str , Any ] | None = None ,
377- inputs : dict [str , Any ] | None = None ,
374+ parent_run_id : Optional [ UUID ] = None ,
375+ tags : Optional [ list [str ]] = None ,
376+ metadata : Optional [ dict [str , Any ]] = None ,
377+ inputs : Optional [ dict [str , Any ]] = None ,
378378 ** kwargs : Any ,
379379 ):
380380 if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -410,8 +410,8 @@ def on_tool_end(
410410 output : Any ,
411411 * ,
412412 run_id : UUID ,
413- parent_run_id : UUID | None = None ,
414- tags : list [str ] | None = None ,
413+ parent_run_id : Optional [ UUID ] = None ,
414+ tags : Optional [ list [str ]] = None ,
415415 ** kwargs : Any ,
416416 ):
417417 if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -426,8 +426,8 @@ def on_tool_error(
426426 self ,
427427 error : BaseException ,
428428 run_id : UUID ,
429- parent_run_id : UUID | None = None ,
430- tags : list [str ] | None = None ,
429+ parent_run_id : Optional [ UUID ] = None ,
430+ tags : Optional [ list [str ]] = None ,
431431 ** kwargs : Any ,
432432 ):
433433 self ._handle_error (error , run_id , parent_run_id , ** kwargs )
0 commit comments