@@ -218,9 +218,9 @@ def on_llm_start(
218
218
prompts : list [str ],
219
219
* ,
220
220
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 ,
224
224
** kwargs : Any ,
225
225
):
226
226
if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -254,8 +254,8 @@ def on_llm_end(
254
254
response : LLMResult ,
255
255
* ,
256
256
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 ,
259
259
** kwargs : Any ,
260
260
):
261
261
if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -302,8 +302,8 @@ def on_llm_error(
302
302
error : BaseException ,
303
303
* ,
304
304
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 ,
307
307
** kwargs : Any ,
308
308
):
309
309
self ._handle_error (error , run_id , parent_run_id , ** kwargs )
@@ -314,9 +314,9 @@ def on_chain_start(
314
314
inputs : dict [str , Any ],
315
315
* ,
316
316
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 ,
320
320
** kwargs : Any ,
321
321
):
322
322
if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -342,8 +342,8 @@ def on_chain_end(
342
342
outputs : dict [str , Any ],
343
343
* ,
344
344
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 ,
347
347
** kwargs : Any ,
348
348
):
349
349
@@ -359,8 +359,8 @@ def on_chain_error(
359
359
self ,
360
360
error : BaseException ,
361
361
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 ,
364
364
** kwargs : Any ,
365
365
):
366
366
self ._handle_error (error , run_id , parent_run_id , ** kwargs )
@@ -371,10 +371,10 @@ def on_tool_start(
371
371
input_str : str ,
372
372
* ,
373
373
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 ,
378
378
** kwargs : Any ,
379
379
):
380
380
if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -410,8 +410,8 @@ def on_tool_end(
410
410
output : Any ,
411
411
* ,
412
412
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 ,
415
415
** kwargs : Any ,
416
416
):
417
417
if context_api .get_value (_SUPPRESS_INSTRUMENTATION_KEY ):
@@ -426,8 +426,8 @@ def on_tool_error(
426
426
self ,
427
427
error : BaseException ,
428
428
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 ,
431
431
** kwargs : Any ,
432
432
):
433
433
self ._handle_error (error , run_id , parent_run_id , ** kwargs )
0 commit comments