Commit fb4180d
authored
Fix/rust sdk (#56)
* feat(sdk-rust): add end-to-end example for TinyHumansMemoryClient
- Introduced a new example script `example_e2e.rs` demonstrating the usage of the TinyHumansMemoryClient.
- Implemented various steps including memory insertion, job checking, document listing, and querying memory.
- Enhanced logging for better traceability during the execution of the example.
- Updated `list_documents` method to accept parameters for namespace, limit, and offset, improving flexibility in document retrieval.
* fix(sdk-rust): clean up whitespace and ensure newline at end of file
- Removed unnecessary whitespace in `example_e2e.rs` for cleaner code.
- Added a newline at the end of `example_e2e.rs` to adhere to file formatting standards.
- Reformatted error message in `lib.rs` for better readability in validation checks.
* fix(sdk-rust): update example scripts for improved functionality
- Updated `example_e2e.rs` to correctly utilize the document ID in memory operations, ensuring all steps are executed.
- Enhanced `test_routes.rs` to include parameters for the `list_documents` method, allowing for better control over document retrieval.1 parent 27ddec1 commit fb4180d
2 files changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
298 | 304 | | |
299 | 305 | | |
300 | 306 | | |
| |||
0 commit comments