collect_runs#
- langchain_core.tracers.context.collect_runs() Generator[RunCollectorCallbackHandler, None, None] [source]#
ๆถ้ไธไธๆไธญ็ๆๆ่ฟ่ก่ฝจ่ฟนใ
- Yields:
run_collector.RunCollectorCallbackHandler โ ่ฟ่กๆถ้ๅจๅ่ฐๅค็็จๅบใ
- Return type:
็ๆๅจ[RunCollectorCallbackHandler, None, None]
็คบไพ
>>> with collect_runs() as runs_cb: chain.invoke("foo") run_id = runs_cb.traced_runs[0].id