Commit b383d90
committed
feat(community): expose BigQueryLoggerConfig and add dataset check
- Export `BigQueryLoggerConfig` in `langchain_google_community/callbacks/__init__.py` to allow easier configuration.
- Add `_ensure_dataset_exists` check to `BigQueryCallbackHandler` and `AsyncBigQueryCallbackHandler` initialization.
- The handlers now raise a `ValueError` immediately if the target BigQuery dataset does not exist, ensuring fail-fast behavior.1 parent 21fdb20 commit b383d90
4 files changed
Lines changed: 70 additions & 8 deletions
File tree
- libs/community
- langchain_google_community
- callbacks
- tests/unit_tests/callbacks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
306 | 320 | | |
307 | 321 | | |
308 | 322 | | |
| |||
1186 | 1200 | | |
1187 | 1201 | | |
1188 | 1202 | | |
1189 | | - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1190 | 1207 | | |
1191 | 1208 | | |
1192 | 1209 | | |
| |||
1201 | 1218 | | |
1202 | 1219 | | |
1203 | 1220 | | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | 1221 | | |
1209 | 1222 | | |
1210 | 1223 | | |
| |||
1717 | 1730 | | |
1718 | 1731 | | |
1719 | 1732 | | |
1720 | | - | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
1721 | 1737 | | |
1722 | 1738 | | |
1723 | 1739 | | |
| |||
1731 | 1747 | | |
1732 | 1748 | | |
1733 | 1749 | | |
1734 | | - | |
1735 | | - | |
1736 | 1750 | | |
1737 | 1751 | | |
1738 | 1752 | | |
| |||
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
0 commit comments