Commit e092529
Move create_vellum_client to vellum.utils and reexport (#3133)
* Move create_vellum_client to vellum.utils and reexport from vellum.workflows.vellum_client
- Moved create_vellum_client, create_vellum_environment, and _resolve_env helper functions to src/vellum/utils/vellum_client.py
- Updated src/vellum/workflows/vellum_client.py to reexport these functions for backward compatibility
- Also reexport Vellum class to maintain existing imports
- Updated src/vellum/utils/__init__.py to export create_vellum_client
Co-Authored-By: [email protected] <[email protected]>
* Fix test mocking to patch correct path after refactoring
Updated conftest.py to patch vellum.utils.vellum_client.Vellum (where create_vellum_client now imports from) in addition to vellum.workflows.vellum_client.Vellum for backward compatibility. This ensures test mocks work correctly after moving create_vellum_client to vellum.utils.
Co-Authored-By: [email protected] <[email protected]>
* Remove unnecessary export from vellum.utils.__init__.py
The original request was to reexport from vellum.workflows.vellum_client, not from vellum.utils. Also, other utils modules (typing, uuid, json_encoder) don't export from __init__.py, so we should follow that pattern and keep the utils __init__.py empty.
Co-Authored-By: [email protected] <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 36c2709 commit e092529
File tree
3 files changed
+45
-40
lines changed- src/vellum
- utils
- workflows
3 files changed
+45
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 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 | | - | |
| 4 | + | |
0 commit comments