uipath 2.1.1__py3-none-any.whl → 2.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,9 +126,9 @@ class Middlewares:
126
126
  register_func()
127
127
  logger.info(f"Loaded middleware plugin: {entry_point.name}")
128
128
  except Exception as e:
129
- logger.error(
129
+ console.error(
130
130
  f"Failed to load middleware plugin {entry_point.name}: {str(e)}",
131
- exc_info=True,
131
+ include_traceback=True,
132
132
  )
133
133
  else:
134
134
  logger.info("No middleware plugins found")
@@ -146,6 +146,7 @@ class UiPathOpenAIService(BaseService):
146
146
  model: str = ChatModels.gpt_4o_mini_2024_07_18,
147
147
  max_tokens: int = 50,
148
148
  temperature: float = 0,
149
+ response_format: Optional[Dict[str, Any]] = None,
149
150
  api_version: str = API_VERSION,
150
151
  ):
151
152
  """Generate chat completions using UiPath's LLM Gateway service.
@@ -167,6 +168,9 @@ class UiPathOpenAIService(BaseService):
167
168
  temperature (float, optional): Temperature for sampling, between 0 and 1.
168
169
  Lower values (closer to 0) make output more deterministic and focused,
169
170
  higher values make it more creative and random. Defaults to 0.
171
+ response_format (Optional[Dict[str, Any]], optional): An object specifying the format
172
+ that the model must output. Used to enable JSON mode or other structured outputs.
173
+ Defaults to None.
170
174
  api_version (str, optional): The API version to use. Defaults to API_VERSION.
171
175
 
172
176
  Returns:
@@ -211,6 +215,10 @@ class UiPathOpenAIService(BaseService):
211
215
  "temperature": temperature,
212
216
  }
213
217
 
218
+ # Add response_format if provided
219
+ if response_format:
220
+ request_body["response_format"] = response_format
221
+
214
222
  response = await self.request_async(
215
223
  "POST",
216
224
  endpoint,
@@ -250,6 +258,7 @@ class UiPathLlmChatService(BaseService):
250
258
  top_p: float = 1,
251
259
  tools: Optional[List[ToolDefinition]] = None,
252
260
  tool_choice: Optional[ToolChoice] = None,
261
+ response_format: Optional[Dict[str, Any]] = None,
253
262
  api_version: str = NORMALIZED_API_VERSION,
254
263
  ):
255
264
  """Generate chat completions using UiPath's normalized LLM Gateway API.
@@ -286,6 +295,9 @@ class UiPathLlmChatService(BaseService):
286
295
  tool_choice (Optional[ToolChoice], optional): Controls which tools the model can call.
287
296
  Can be "auto" (model decides), "none" (no tools), or a specific tool choice.
288
297
  Defaults to None.
298
+ response_format (Optional[Dict[str, Any]], optional): An object specifying the format
299
+ that the model must output. Used to enable JSON mode or other structured outputs.
300
+ Defaults to None.
289
301
  api_version (str, optional): The normalized API version to use.
290
302
  Defaults to NORMALIZED_API_VERSION.
291
303
 
@@ -358,6 +370,10 @@ class UiPathLlmChatService(BaseService):
358
370
  "top_p": top_p,
359
371
  }
360
372
 
373
+ # Add response_format if provided
374
+ if response_format:
375
+ request_body["response_format"] = response_format
376
+
361
377
  # Add tools if provided - convert to UiPath format
362
378
  if tools:
363
379
  request_body["tools"] = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.1
3
+ Version: 2.1.3
4
4
  Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-python
@@ -14,7 +14,7 @@ uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
14
14
  uipath/_cli/cli_pack.py,sha256=P7tX3CJg2fzoLhPMHbr6m1fKXWRv2QkyIGgNM1MajT0,20978
15
15
  uipath/_cli/cli_publish.py,sha256=QT17JTClAyLve6ZjB-WvQaJ-j4DdmNneV_eDRyXjeeQ,6578
16
16
  uipath/_cli/cli_run.py,sha256=cTZYWJkGk2ruk6RRJBXII9J6VjpgGmysv_KlKI1JMHo,6446
17
- uipath/_cli/middlewares.py,sha256=f7bVODO9tgdtWNepG5L58-B-VgBSU6Ek2tIU6wLz0xA,4905
17
+ uipath/_cli/middlewares.py,sha256=CN-QqV69zZPI-hvizvEIb-zTcNh9WjsZIYCF3_nHSio,4915
18
18
  uipath/_cli/spinner.py,sha256=bS-U_HA5yne11ejUERu7CQoXmWdabUD2bm62EfEdV8M,1107
19
19
  uipath/_cli/_auth/_auth_server.py,sha256=p93_EvJpdoLLkiVmLygHRKo9ru1-PZOEAaEhNFN3j6c,6424
20
20
  uipath/_cli/_auth/_client_credentials.py,sha256=eENVb54-uzEqi7bC5VNjsiULW4fSfs-sK0kgUjRKorA,5412
@@ -56,7 +56,7 @@ uipath/_services/connections_service.py,sha256=qh-HNL_GJsyPUD0wSJZRF8ZdrTE9l4HrI
56
56
  uipath/_services/context_grounding_service.py,sha256=EBf7lIIYz_s1ubf_07OAZXQHjS8kpZ2vqxo4mI3VL-A,25009
57
57
  uipath/_services/folder_service.py,sha256=9JqgjKhWD-G_KUnfUTP2BADxL6OK9QNZsBsWZHAULdE,2749
58
58
  uipath/_services/jobs_service.py,sha256=CnDd7BM4AMqcMIR1qqu5ohhxf9m0AF4dnGoF4EX38kw,30872
59
- uipath/_services/llm_gateway_service.py,sha256=Y09Ca_yZoMb1hoFIi3U6_QoJFfWa9eMYkR-9JOp6AsQ,17828
59
+ uipath/_services/llm_gateway_service.py,sha256=mX_7md6Sxid-Vu9XFQ8vetb106HnwsYJtxzw4W8fzTg,18670
60
60
  uipath/_services/processes_service.py,sha256=Pk6paw7e_a-WvVcfKDLuyj1p--pvNRTXwZNYIwDdYzo,5726
61
61
  uipath/_services/queues_service.py,sha256=VaG3dWL2QK6AJBOLoW2NQTpkPfZjsqsYPl9-kfXPFzA,13534
62
62
  uipath/_utils/__init__.py,sha256=VdcpnENJIa0R6Y26NoxY64-wUVyvb4pKfTh1wXDQeMk,526
@@ -95,8 +95,8 @@ uipath/tracing/_traced.py,sha256=qeVDrds2OUnpdUIA0RhtF0kg2dlAZhyC1RRkI-qivTM,185
95
95
  uipath/tracing/_utils.py,sha256=ZeensQexnw69jVcsVrGyED7mPlAU-L1agDGm6_1A3oc,10388
96
96
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
97
97
  uipath/utils/_endpoints_manager.py,sha256=hiGEu6vyfQJoeiiql6w21TNiG6tADUfXlVBimxPU1-Q,4160
98
- uipath-2.1.1.dist-info/METADATA,sha256=EABqoFhaZSUJwdjTHlq0nsidBA3V59LRMazKGOdRuSg,6366
99
- uipath-2.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
- uipath-2.1.1.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
101
- uipath-2.1.1.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
102
- uipath-2.1.1.dist-info/RECORD,,
98
+ uipath-2.1.3.dist-info/METADATA,sha256=c6ZrTqWnqHX5IxItucH3tjrPgEWysnmw7xFrFvBGXl0,6366
99
+ uipath-2.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
+ uipath-2.1.3.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
101
+ uipath-2.1.3.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
102
+ uipath-2.1.3.dist-info/RECORD,,
File without changes