Commit 21fddf6
fix: use public API guards, fix enum comparison, run ruff format
- Use Agent.is_call_tools_node() / Agent.is_model_request_node() for
type narrowing instead of private module imports
- Remove all imports from pydantic_ai._agent_graph
- Compare phase against UiPathRuntimeStatePhase.STARTED enum directly
- Run ruff format on all files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1d16ea4 commit 21fddf6
3 files changed
Lines changed: 22 additions & 30 deletions
File tree
- packages/uipath-pydantic-ai
- src/uipath_pydantic_ai/runtime
- tests
Lines changed: 12 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | | - | |
| 180 | + | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
207 | | - | |
208 | | - | |
209 | | - | |
| 206 | + | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| |||
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 223 | + | |
229 | 224 | | |
230 | 225 | | |
231 | 226 | | |
232 | 227 | | |
233 | 228 | | |
234 | 229 | | |
235 | 230 | | |
236 | | - | |
| 231 | + | |
237 | 232 | | |
238 | 233 | | |
239 | 234 | | |
| |||
247 | 242 | | |
248 | 243 | | |
249 | 244 | | |
250 | | - | |
251 | | - | |
252 | | - | |
| 245 | + | |
253 | 246 | | |
254 | 247 | | |
255 | 248 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
| 724 | + | |
729 | 725 | | |
730 | 726 | | |
731 | 727 | | |
732 | 728 | | |
733 | 729 | | |
734 | 730 | | |
735 | 731 | | |
736 | | - | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
737 | 736 | | |
738 | 737 | | |
739 | 738 | | |
| |||
761 | 760 | | |
762 | 761 | | |
763 | 762 | | |
764 | | - | |
765 | | - | |
766 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
767 | 766 | | |
768 | 767 | | |
769 | 768 | | |
| |||
0 commit comments