Commit 1b6fee9
authored
feat: add
* feat: add BigtableEngine Class for managing the client and execution context
Added the engine class that manages the client and execution context which handles the async and sync conversion via a background event loop.
Added a test file for the engine class.
* fix(engine): update BigtableEngine setup by internalizing client creation
Removes the option to pre-instantiate and pass a BigtableDataClientAsync
to the BigtableEngine. The engine now creates its own client instance,
making it more self-contained.
* test(engine): update tests to match BigtableEngine class changes
Adjusted test cases and assertions to align with the recent modifications
in the BigtableEngine class API and behavior.
* style(engine): update test_engine.py and engine.py format
* test(engine): add tests for async_initialize workflow
* feat(engine): add async_initialize factory and shared loop management
This change introduces BigtableEngine.async_initialize for non-blocking
asynchronous initialization.
* style(engine): update test_engine.py
* feat: add `AsyncBigtableByteStore` class for async-only implementation LangChain's key-value store.
This commit introduces the `AsyncBigtableByteStore` class. This class is designed to handle setting,
getting, deleting, and yielding keys asynchronously. It will be used by the main public-facing
`BigtableByteStore` for all the data operations on the table. It also includes a test suite.
* fix: Ensure the loop is closed in BigtableEngine.shutdown_default_loop
The `shutdown_default_loop` method was not closing the asyncio event loop, only that class level variables were reassigned. This commit adds a line that closes the loop when the thread is successfully terminated.
* fix: ensure the loop is closed in BigtableEngine.shutdown_default_loop
The `shutdown_default_loop` method was not closing the asyncio event loop, only that class level variables were reassigned. This commit adds a line that closes the loop when the thread is successfully terminated.
* feat: add BigtableEngine Class for managing the client and execution context (#163)
* feat: add BigtableEngine Class for managing the client and execution context
Added the engine class that manages the client and execution context which handles the async and sync conversion via a background event loop.
Added a test file for the engine class.
* fix(engine): update BigtableEngine setup by internalizing client creation
Removes the option to pre-instantiate and pass a BigtableDataClientAsync
to the BigtableEngine. The engine now creates its own client instance,
making it more self-contained.
* test(engine): update tests to match BigtableEngine class changes
Adjusted test cases and assertions to align with the recent modifications
in the BigtableEngine class API and behavior.
* style(engine): update test_engine.py and engine.py format
* test(engine): add tests for async_initialize workflow
* feat(engine): add async_initialize factory and shared loop management
This change introduces BigtableEngine.async_initialize for non-blocking
asynchronous initialization.
* style(engine): update test_engine.py
* fix: import MutationsExceptionGroup and FailedMutationEntryError
* fix: import MutationsExceptionGroup and FailedMutationEntryError
* style: remove type from variable `loop`
* fix: add test case for testing mutation errors
* fix: add test case for testing mutation errors
* fix: add test case for testing mutation errors
* fix: address comments left in this PRAsyncBigtableByteStore Class for the async-only key value store implementation. (#169)1 parent 05932d2 commit 1b6fee9
File tree
4 files changed
+524
-2
lines changed- src/langchain_google_bigtable
- tests
4 files changed
+524
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
253 | 262 | | |
254 | 263 | | |
255 | 264 | | |
| |||
261 | 270 | | |
262 | 271 | | |
263 | 272 | | |
264 | | - | |
| 273 | + | |
265 | 274 | | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
0 commit comments