uipath 2.1.18__tar.gz → 2.1.21__tar.gz

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.
Files changed (241) hide show
  1. {uipath-2.1.18 → uipath-2.1.21}/PKG-INFO +1 -1
  2. {uipath-2.1.18 → uipath-2.1.21}/pyproject.toml +1 -1
  3. uipath-2.1.21/samples/event-trigger/.python-version +1 -0
  4. uipath-2.1.21/samples/event-trigger/README.md +128 -0
  5. uipath-2.1.21/samples/event-trigger/main.py +34 -0
  6. uipath-2.1.21/samples/event-trigger/pyproject.toml +9 -0
  7. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_evaluator_factory.py +4 -0
  8. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_models/_evaluation_set.py +10 -0
  9. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/evaluation_service.py +24 -25
  10. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_runtime/_runtime.py +43 -7
  11. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_input_args.py +28 -1
  12. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_parse_ast.py +12 -0
  13. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_project_files.py +7 -0
  14. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_eval.py +30 -5
  15. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_invoke.py +0 -1
  16. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/connections_service.py +82 -2
  17. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_infer_bindings.py +5 -2
  18. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/__init__.py +2 -1
  19. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/connections.py +17 -0
  20. uipath-2.1.21/src/uipath/utils/_endpoints_manager.py +200 -0
  21. uipath-2.1.21/tests/cli/test_input_args.py +114 -0
  22. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_pack.py +21 -0
  23. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_run.py +86 -0
  24. uipath-2.1.21/tests/sdk/services/test_connections_service.py +418 -0
  25. {uipath-2.1.18 → uipath-2.1.21}/uv.lock +1 -1
  26. uipath-2.1.18/src/uipath/utils/_endpoints_manager.py +0 -101
  27. uipath-2.1.18/tests/sdk/services/test_connections_service.py +0 -196
  28. {uipath-2.1.18 → uipath-2.1.21}/.cursorrules +0 -0
  29. {uipath-2.1.18 → uipath-2.1.21}/.editorconfig +0 -0
  30. {uipath-2.1.18 → uipath-2.1.21}/.gitattributes +0 -0
  31. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/cd.yml +0 -0
  32. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/ci.yml +0 -0
  33. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/commitlint.yml +0 -0
  34. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/lint.yml +0 -0
  35. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/publish-dev.yml +0 -0
  36. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/publish-docs.yml +0 -0
  37. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/slack.yml +0 -0
  38. {uipath-2.1.18 → uipath-2.1.21}/.github/workflows/test.yml +0 -0
  39. {uipath-2.1.18 → uipath-2.1.21}/.gitignore +0 -0
  40. {uipath-2.1.18 → uipath-2.1.21}/.pre-commit-config.yaml +0 -0
  41. {uipath-2.1.18 → uipath-2.1.21}/.python-version +0 -0
  42. {uipath-2.1.18 → uipath-2.1.21}/.vscode/extensions.json +0 -0
  43. {uipath-2.1.18 → uipath-2.1.21}/.vscode/launch.json +0 -0
  44. {uipath-2.1.18 → uipath-2.1.21}/.vscode/settings.json +0 -0
  45. {uipath-2.1.18 → uipath-2.1.21}/CONTRIBUTING.md +0 -0
  46. {uipath-2.1.18 → uipath-2.1.21}/LICENSE +0 -0
  47. {uipath-2.1.18 → uipath-2.1.21}/README.md +0 -0
  48. {uipath-2.1.18 → uipath-2.1.21}/docs/CONTRIBUTING.md +0 -0
  49. {uipath-2.1.18 → uipath-2.1.21}/docs/FAQ.md +0 -0
  50. {uipath-2.1.18 → uipath-2.1.21}/docs/assets/env-preparation-failed-dark.png +0 -0
  51. {uipath-2.1.18 → uipath-2.1.21}/docs/assets/env-preparation-failed-light.png +0 -0
  52. {uipath-2.1.18 → uipath-2.1.21}/docs/assets/favicon.png +0 -0
  53. {uipath-2.1.18 → uipath-2.1.21}/docs/assets/logo-dark.svg +0 -0
  54. {uipath-2.1.18 → uipath-2.1.21}/docs/assets/logo-light.svg +0 -0
  55. {uipath-2.1.18 → uipath-2.1.21}/docs/cli/index.md +0 -0
  56. {uipath-2.1.18 → uipath-2.1.21}/docs/core/actions.md +0 -0
  57. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/cloud_env_var_dark.gif +0 -0
  58. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/cloud_env_var_light.gif +0 -0
  59. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/cloud_env_var_secret_dark.png +0 -0
  60. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/cloud_env_var_secret_light.png +0 -0
  61. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/copy_path_dark.png +0 -0
  62. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets/copy_path_light.png +0 -0
  63. {uipath-2.1.18 → uipath-2.1.21}/docs/core/assets.md +0 -0
  64. {uipath-2.1.18 → uipath-2.1.21}/docs/core/attachments.md +0 -0
  65. {uipath-2.1.18 → uipath-2.1.21}/docs/core/buckets.md +0 -0
  66. {uipath-2.1.18 → uipath-2.1.21}/docs/core/connections.md +0 -0
  67. {uipath-2.1.18 → uipath-2.1.21}/docs/core/context_grounding.md +0 -0
  68. {uipath-2.1.18 → uipath-2.1.21}/docs/core/environment_variables.md +0 -0
  69. {uipath-2.1.18 → uipath-2.1.21}/docs/core/getting_started.md +0 -0
  70. {uipath-2.1.18 → uipath-2.1.21}/docs/core/jobs.md +0 -0
  71. {uipath-2.1.18 → uipath-2.1.21}/docs/core/llm_gateway.md +0 -0
  72. {uipath-2.1.18 → uipath-2.1.21}/docs/core/processes.md +0 -0
  73. {uipath-2.1.18 → uipath-2.1.21}/docs/core/queues.md +0 -0
  74. {uipath-2.1.18 → uipath-2.1.21}/docs/core/traced.md +0 -0
  75. {uipath-2.1.18 → uipath-2.1.21}/docs/hooks.py +0 -0
  76. {uipath-2.1.18 → uipath-2.1.21}/docs/index.md +0 -0
  77. {uipath-2.1.18 → uipath-2.1.21}/docs/javascripts/extra.js +0 -0
  78. {uipath-2.1.18 → uipath-2.1.21}/docs/overrides/main.html +0 -0
  79. {uipath-2.1.18 → uipath-2.1.21}/docs/overrides/partials/actions.html +0 -0
  80. {uipath-2.1.18 → uipath-2.1.21}/docs/overrides/partials/logo.html +0 -0
  81. {uipath-2.1.18 → uipath-2.1.21}/docs/release_policy.md +0 -0
  82. {uipath-2.1.18 → uipath-2.1.21}/docs/sample_images/google-ADK-agent/agent-output.png +0 -0
  83. {uipath-2.1.18 → uipath-2.1.21}/docs/stylesheets/extra.css +0 -0
  84. {uipath-2.1.18 → uipath-2.1.21}/justfile +0 -0
  85. {uipath-2.1.18 → uipath-2.1.21}/mkdocs.yml +0 -0
  86. {uipath-2.1.18 → uipath-2.1.21}/py.typed +0 -0
  87. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/.env.example +0 -0
  88. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/README.md +0 -0
  89. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/input.json +0 -0
  90. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/multi_tool_agent/__init__.py +0 -0
  91. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/multi_tool_agent/agent.py +0 -0
  92. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/pyproject.toml +0 -0
  93. {uipath-2.1.18 → uipath-2.1.21}/samples/google-ADK-agent/uv.lock +0 -0
  94. {uipath-2.1.18 → uipath-2.1.21}/scripts/debug_test.py +0 -0
  95. {uipath-2.1.18 → uipath-2.1.21}/scripts/lint_httpx_client.py +0 -0
  96. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/__init__.py +0 -0
  97. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/README.md +0 -0
  98. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/__init__.py +0 -0
  99. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_auth_server.py +0 -0
  100. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_client_credentials.py +0 -0
  101. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_models.py +0 -0
  102. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
  103. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_portal_service.py +0 -0
  104. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/_utils.py +0 -0
  105. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/auth_config.json +0 -0
  106. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/index.html +0 -0
  107. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/localhost.crt +0 -0
  108. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_auth/localhost.key +0 -0
  109. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/__init__.py +0 -0
  110. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_deterministic_evaluator_base.py +0 -0
  111. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_evaluator_base.py +0 -0
  112. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_exact_match_evaluator.py +0 -0
  113. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_json_similarity_evaluator.py +0 -0
  114. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_llm_as_judge_evaluator.py +0 -0
  115. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_evaluators/_trajectory_evaluator.py +0 -0
  116. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_models/__init__.py +0 -0
  117. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/_models/_evaluators.py +0 -0
  118. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_evals/progress_reporter.py +0 -0
  119. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_push/sw_file_handler.py +0 -0
  120. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_runtime/_contracts.py +0 -0
  121. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_runtime/_escalation.py +0 -0
  122. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_runtime/_hitl.py +0 -0
  123. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_runtime/_logging.py +0 -0
  124. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
  125. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_templates/.rels.template +0 -0
  126. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
  127. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_templates/main.py.template +0 -0
  128. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
  129. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_common.py +0 -0
  130. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_console.py +0 -0
  131. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_constants.py +0 -0
  132. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_debug.py +0 -0
  133. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_folders.py +0 -0
  134. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_processes.py +0 -0
  135. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_studio_project.py +0 -0
  136. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_tracing.py +0 -0
  137. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/_utils/_uv_helpers.py +0 -0
  138. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_auth.py +0 -0
  139. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_deploy.py +0 -0
  140. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_init.py +0 -0
  141. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_new.py +0 -0
  142. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_pack.py +0 -0
  143. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_publish.py +0 -0
  144. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_pull.py +0 -0
  145. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_push.py +0 -0
  146. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/cli_run.py +0 -0
  147. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/middlewares.py +0 -0
  148. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_cli/spinner.py +0 -0
  149. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_config.py +0 -0
  150. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_execution_context.py +0 -0
  151. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_folder_context.py +0 -0
  152. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/__init__.py +0 -0
  153. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/_base_service.py +0 -0
  154. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/actions_service.py +0 -0
  155. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/api_client.py +0 -0
  156. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/assets_service.py +0 -0
  157. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/attachments_service.py +0 -0
  158. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/buckets_service.py +0 -0
  159. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/context_grounding_service.py +0 -0
  160. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/folder_service.py +0 -0
  161. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/jobs_service.py +0 -0
  162. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/llm_gateway_service.py +0 -0
  163. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/processes_service.py +0 -0
  164. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_services/queues_service.py +0 -0
  165. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_uipath.py +0 -0
  166. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/__init__.py +0 -0
  167. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_endpoint.py +0 -0
  168. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_logs.py +0 -0
  169. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_read_overwrites.py +0 -0
  170. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_request_override.py +0 -0
  171. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_request_spec.py +0 -0
  172. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_ssl_context.py +0 -0
  173. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_url.py +0 -0
  174. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/_user_agent.py +0 -0
  175. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/_utils/constants.py +0 -0
  176. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/action_schema.py +0 -0
  177. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/actions.py +0 -0
  178. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/assets.py +0 -0
  179. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/attachment.py +0 -0
  180. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/buckets.py +0 -0
  181. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/context_grounding.py +0 -0
  182. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/context_grounding_index.py +0 -0
  183. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/errors.py +0 -0
  184. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/exceptions.py +0 -0
  185. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/interrupt_models.py +0 -0
  186. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/job.py +0 -0
  187. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/llm_gateway.py +0 -0
  188. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/processes.py +0 -0
  189. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/models/queues.py +0 -0
  190. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/py.typed +0 -0
  191. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/telemetry/__init__.py +0 -0
  192. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/telemetry/_constants.py +0 -0
  193. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/telemetry/_track.py +0 -0
  194. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/tracing/__init__.py +0 -0
  195. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/tracing/_otel_exporters.py +0 -0
  196. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/tracing/_traced.py +0 -0
  197. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/tracing/_utils.py +0 -0
  198. {uipath-2.1.18 → uipath-2.1.21}/src/uipath/utils/__init__.py +0 -0
  199. {uipath-2.1.18 → uipath-2.1.21}/tests/__init__.py +0 -0
  200. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/conftest.py +0 -0
  201. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/evaluators/test_json_similarity_evaluator.py +0 -0
  202. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/mocks/bindings_script.py +0 -0
  203. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/mocks/pyproject.toml +0 -0
  204. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/mocks/simple_script.py +0 -0
  205. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/mocks/uipath-mock.json +0 -0
  206. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/mocks/uipath-simple-script-mock.json +0 -0
  207. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_hitl.py +0 -0
  208. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_init.py +0 -0
  209. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_invoke.py +0 -0
  210. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_new.py +0 -0
  211. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_publish.py +0 -0
  212. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_pull.py +0 -0
  213. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_push.py +0 -0
  214. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/test_utils.py +0 -0
  215. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/utils/common.py +0 -0
  216. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/utils/project_details.py +0 -0
  217. {uipath-2.1.18 → uipath-2.1.21}/tests/cli/utils/uipath_json.py +0 -0
  218. {uipath-2.1.18 → uipath-2.1.21}/tests/conftest.py +0 -0
  219. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/conftest.py +0 -0
  220. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_actions_service.py +0 -0
  221. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_api_client.py +0 -0
  222. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_assets_service.py +0 -0
  223. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_attachments_service.py +0 -0
  224. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_base_service.py +0 -0
  225. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_buckets_service.py +0 -0
  226. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_context_grounding_service.py +0 -0
  227. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_folder_service.py +0 -0
  228. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_jobs_service.py +0 -0
  229. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_llm_integration.py +0 -0
  230. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_llm_schema_cleanup.py +0 -0
  231. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_llm_service.py +0 -0
  232. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_processes_service.py +0 -0
  233. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_queues_service.py +0 -0
  234. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
  235. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/test_bindings_inference.py +0 -0
  236. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/test_config.py +0 -0
  237. {uipath-2.1.18 → uipath-2.1.21}/tests/sdk/test_overwrites.py +0 -0
  238. {uipath-2.1.18 → uipath-2.1.21}/tests/tracing/test_otel_exporters.py +0 -0
  239. {uipath-2.1.18 → uipath-2.1.21}/tests/tracing/test_span_utils.py +0 -0
  240. {uipath-2.1.18 → uipath-2.1.21}/tests/tracing/test_traced.py +0 -0
  241. {uipath-2.1.18 → uipath-2.1.21}/tests/tracing/test_tracing_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.18
3
+ Version: 2.1.21
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "uipath"
3
- version = "2.1.18"
3
+ version = "2.1.21"
4
4
  description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
5
5
  readme = { file = "README.md", content-type = "text/markdown" }
6
6
  requires-python = ">=3.10"
@@ -0,0 +1,128 @@
1
+ # UiPath Coded Agents with Event Triggers
2
+
3
+ This guide explains how to create Python-based UiPath Coded Agents that respond to event triggers, enabling seamless event-driven agents.
4
+
5
+ ## Overview
6
+
7
+ UiPath Coded Agents allow you to write automation logic directly in Python while leveraging UiPath's event trigger system. This project demonstrates how to create agents that handle external events from systems like Gmail, Slack, and other connectors.
8
+
9
+ ## How to Set Up UiPath Coded Agents with Event Triggers
10
+
11
+ ### Step 1: Install UiPath Python SDK
12
+
13
+ 1. Open it with your prefered editor
14
+ 2. In terminal run:
15
+ ```bash
16
+ uv init
17
+ uv add uipath
18
+ uv run uipath new event-agent
19
+ uv run uipath init
20
+ ```
21
+
22
+ ### Step 2: Create Your Coded Agent
23
+
24
+ Create a Python file with your agent logic using the UiPath SDK:
25
+
26
+ ```python
27
+ from dataclasses import dataclass
28
+ from uipath.models import EventArguments
29
+ from uipath import UiPath
30
+ import logging
31
+
32
+ logger = logging.getLogger(__name__)
33
+
34
+ @dataclass
35
+ class EchoOut:
36
+ message: dict
37
+
38
+ # use EventArguments when called by UiPath EventTriggers
39
+ def main(input: EventArguments) -> EchoOut:
40
+ sdk = UiPath()
41
+
42
+ # get the event payload, this will be different from event to event
43
+ payload = sdk.connections.retrieve_event_payload(input)
44
+
45
+ logger.info(f"Received payload: {payload}")
46
+
47
+ return EchoOut(payload)
48
+ ```
49
+
50
+ Run `uipath init` again to update the input arguments.
51
+
52
+ ### Step 3: Understanding the Event Flow
53
+
54
+ When an event trigger fires, UiPath will:
55
+ 1. Pass event data through `EventArguments`
56
+ 2. Your agent retrieves the full payload using `sdk.connections.retrieve_event_payload(input)`
57
+ 3. Process the payload based on your business logic
58
+ 4. Return structured output
59
+
60
+ ### Step 4: Publish Your Coded Agent and setup Event Trigger
61
+
62
+ #### 4.1: Build and Publish
63
+ 1. Use `uipath pack` and `uipath publish` to create and publish the package
64
+ 2. Create an Orchestrator Automation from the published process
65
+
66
+ #### 4.2: Access Event Triggers
67
+ 1. Log into UiPath Orchestrator
68
+ 2. Navigate to **Automations** → **Processes**
69
+ 3. Click on your coded workflow process
70
+
71
+ #### 4.3: Create Event Trigger
72
+ 1. Go to the **Triggers** tab
73
+ 2. Click **Add Trigger** → **Event Trigger**
74
+
75
+ #### 4.4: Configure Event Trigger Settings
76
+ 1. **Name**: Descriptive name (e.g., "Gmail Event Handler")
77
+ 2. **Event Source**: Select connector type:
78
+ - `uipath-google-gmailcustom` for Gmail
79
+ - `uipath-slack` for Slack
80
+ - `uipath-microsoft-outlookcustom` for Outlook
81
+ - Custom connectors
82
+ 3. **Event Type**: Choose specific event:
83
+ - `EMAIL_RECEIVED` for emails
84
+ - `MESSAGE_RECEIVED` for chat messages
85
+ - Custom event types
86
+ 4. **Filters**: Optional event filtering criteria
87
+
88
+ #### 4.5: Map Event to Input Arguments
89
+ The event data will automatically be passed to your `EventArguments` parameter.
90
+
91
+ #### 4.6: Enable the Trigger
92
+ 1. Review configuration
93
+ 2. Click **Create** to save
94
+ 3. Ensure trigger status is **Enabled**
95
+
96
+ ### Step 5: Test Your Setup
97
+
98
+ #### 5.1: Trigger Test Events
99
+ - Send test email (Gmail triggers)
100
+ - Post message in Slack (Slack triggers)
101
+ - Perform action matching your event source
102
+
103
+ #### 5.2: Monitor Execution
104
+ 1. Check **Monitoring** → **Jobs** in Orchestrator
105
+ 2. View job details and execution logs
106
+ 3. Verify your coded agent processed the event correctly
107
+
108
+ #### 5.3: Debug with Logs
109
+
110
+ ```python
111
+ import logging
112
+
113
+ logger = logging.getLogger(__name__)
114
+
115
+ def main(input: EventArguments) -> EchoOut:
116
+ sdk = UiPath()
117
+
118
+ # payload will be a json (dict) specific to your event
119
+ payload = sdk.connections.retrieve_event_payload(input)
120
+ logger.info(f"Successfully retrieved payload: {type(payload)}")
121
+ logger.debug(f"Payload details: {payload}")
122
+
123
+ # Your processing logic here
124
+ result = process_event(payload)
125
+
126
+ logger.info(f"Event processed successfully: {result}")
127
+ return EchoOut(result)
128
+ ```
@@ -0,0 +1,34 @@
1
+ from dataclasses import dataclass
2
+ from uipath.models import EventArguments
3
+ from uipath import UiPath
4
+ from uipath.tracing import traced
5
+ import logging
6
+
7
+ logger = logging.getLogger(__name__)
8
+
9
+ @dataclass
10
+ class EchoOut:
11
+ message: dict
12
+
13
+ @traced()
14
+ def handle_slack_event(payload: dict[str, any]) -> EchoOut:
15
+ """Handle Slack message events"""
16
+ message = payload['event']['text'] if 'event' in payload and 'text' in payload['event'] else "No message"
17
+ user = payload['event']['user'] if 'event' in payload and 'user' in payload['event'] else "Unknown user"
18
+
19
+ logger.info(f"Slack message from {user}: {message}")
20
+
21
+
22
+ # use InputTriggerEventArgs when called by UiPath EventTriggers
23
+ @traced()
24
+ def main(input: EventArguments) -> EchoOut:
25
+ sdk = UiPath()
26
+
27
+ # get the event payload, this will be different from event to event
28
+ payload = sdk.connections.retrieve_event_payload(input)
29
+
30
+ handle_slack_event(payload)
31
+
32
+ logger.info(f"Received payload: {payload}")
33
+
34
+ return EchoOut(payload)
@@ -0,0 +1,9 @@
1
+ [project]
2
+ name = "event-agent"
3
+ version = "0.0.5"
4
+ description = "event-agent"
5
+ authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
6
+ dependencies = [
7
+ "uipath>=2.1.18",
8
+ ]
9
+ requires-python = ">=3.10"
@@ -107,6 +107,10 @@ class EvaluatorFactory:
107
107
  model = data.get("model", "")
108
108
  if not model:
109
109
  raise ValueError("LLM evaluator must include 'model' field")
110
+ if model == "same-as-agent":
111
+ raise ValueError(
112
+ "'same-as-agent' model option is not supported by coded agents evaluations. Please select a specific model for the evaluator."
113
+ )
110
114
 
111
115
  return LlmAsAJudgeEvaluator.from_params(
112
116
  base_params,
@@ -36,6 +36,16 @@ class EvaluationSet(BaseModel):
36
36
  createdAt: str
37
37
  updatedAt: str
38
38
 
39
+ def extract_selected_evals(self, eval_ids) -> None:
40
+ selected_evals: list[EvaluationItem] = []
41
+ for evaluation in self.evaluations:
42
+ if evaluation.id in eval_ids:
43
+ selected_evals.append(evaluation)
44
+ eval_ids.remove(evaluation.id)
45
+ if len(eval_ids) > 0:
46
+ raise ValueError("Unknown evaluation ids: {}".format(eval_ids))
47
+ self.evaluations = selected_evals
48
+
39
49
 
40
50
  class EvaluationStatus(IntEnum):
41
51
  PENDING = 0
@@ -33,6 +33,7 @@ class EvaluationService:
33
33
  self,
34
34
  entrypoint: Optional[str] = None,
35
35
  eval_set_path: Optional[str | Path] = None,
36
+ eval_ids: Optional[List[str]] = None,
36
37
  workers: int = 8,
37
38
  report_progress: bool = True,
38
39
  ):
@@ -47,10 +48,10 @@ class EvaluationService:
47
48
  self.entrypoint, self.eval_set_path = self._resolve_paths(
48
49
  entrypoint, eval_set_path
49
50
  )
50
- self.eval_set = self._load_eval_set()
51
+ self._eval_set = self._load_eval_set(eval_ids)
51
52
  self._evaluators = self._load_evaluators()
52
- self.num_workers = workers
53
- self.results_lock = asyncio.Lock()
53
+ self._num_workers = workers
54
+ self._results_lock = asyncio.Lock()
54
55
  self._progress_manager: Optional[EvaluationProgressManager] = None
55
56
  self._report_progress = report_progress
56
57
  self._progress_reporter: Optional[ProgressReporter] = None
@@ -169,9 +170,9 @@ class EvaluationService:
169
170
  if self._report_progress:
170
171
  agent_snapshot = self._extract_agent_snapshot()
171
172
  self._progress_reporter = ProgressReporter(
172
- eval_set_id=self.eval_set.id,
173
+ eval_set_id=self._eval_set.id,
173
174
  agent_snapshot=agent_snapshot,
174
- no_of_evals=len(self.eval_set.evaluations),
175
+ no_of_evals=len(self._eval_set.evaluations),
175
176
  evaluators=self._evaluators,
176
177
  )
177
178
 
@@ -215,12 +216,12 @@ class EvaluationService:
215
216
 
216
217
  # Create results file
217
218
  timestamp = datetime.now(timezone.utc).strftime("%M-%H-%d-%m-%Y")
218
- eval_set_name = self.eval_set.name
219
+ eval_set_name = self._eval_set.name
219
220
  self.result_file = results_dir / f"eval-{eval_set_name}-{timestamp}.json"
220
221
 
221
222
  initial_results = EvaluationSetResult(
222
- eval_set_id=self.eval_set.id,
223
- eval_set_name=self.eval_set.name,
223
+ eval_set_id=self._eval_set.id,
224
+ eval_set_name=self._eval_set.name,
224
225
  results=[],
225
226
  average_score=0.0,
226
227
  )
@@ -228,7 +229,7 @@ class EvaluationService:
228
229
  with open(self.result_file, "w", encoding="utf-8") as f:
229
230
  f.write(initial_results.model_dump_json(indent=2))
230
231
 
231
- def _load_eval_set(self) -> EvaluationSet:
232
+ def _load_eval_set(self, eval_ids: Optional[List[str]] = None) -> EvaluationSet:
232
233
  """Load the evaluation set from file.
233
234
 
234
235
  Returns:
@@ -236,13 +237,16 @@ class EvaluationService:
236
237
  """
237
238
  with open(self.eval_set_path, "r", encoding="utf-8") as f:
238
239
  data = json.load(f)
239
- return EvaluationSet(**data)
240
+ eval_set = EvaluationSet(**data)
241
+ if eval_ids:
242
+ eval_set.extract_selected_evals(eval_ids)
243
+ return eval_set
240
244
 
241
245
  def _load_evaluators(self) -> List[EvaluatorBase]:
242
246
  """Load evaluators referenced by the evaluation set."""
243
247
  evaluators = []
244
248
  evaluators_dir = self.eval_set_path.parent.parent / "evaluators"
245
- evaluator_refs = set(self.eval_set.evaluatorRefs)
249
+ evaluator_refs = set(self._eval_set.evaluatorRefs)
246
250
  found_evaluator_ids = set()
247
251
 
248
252
  # Load evaluators from JSON files
@@ -252,14 +256,9 @@ class EvaluationService:
252
256
  evaluator_id = data.get("id")
253
257
 
254
258
  if evaluator_id in evaluator_refs:
255
- try:
256
- evaluator = EvaluatorFactory.create_evaluator(data)
257
- evaluators.append(evaluator)
258
- found_evaluator_ids.add(evaluator_id)
259
- except Exception as e:
260
- console.warning(
261
- f"Failed to create evaluator {evaluator_id}: {str(e)}"
262
- )
259
+ evaluator = EvaluatorFactory.create_evaluator(data)
260
+ evaluators.append(evaluator)
261
+ found_evaluator_ids.add(evaluator_id)
263
262
 
264
263
  # Check if all referenced evaluators were found
265
264
  missing_evaluators = evaluator_refs - found_evaluator_ids
@@ -276,7 +275,7 @@ class EvaluationService:
276
275
  Args:
277
276
  results: List of evaluation results to write
278
277
  """
279
- async with self.results_lock:
278
+ async with self._results_lock:
280
279
  # Read current results
281
280
  with open(self.result_file, "r", encoding="utf-8") as f:
282
281
  current_results = EvaluationSetResult.model_validate_json(f.read())
@@ -473,11 +472,11 @@ class EvaluationService:
473
472
  Args:
474
473
  task_queue: The asyncio queue to add tasks to
475
474
  """
476
- for eval_item in self.eval_set.evaluations:
475
+ for eval_item in self._eval_set.evaluations:
477
476
  await task_queue.put(eval_item.model_dump())
478
477
 
479
478
  # Add sentinel values to signal workers to stop
480
- for _ in range(self.num_workers):
479
+ for _ in range(self._num_workers):
481
480
  await task_queue.put(None)
482
481
 
483
482
  async def _consumer_task(
@@ -517,7 +516,7 @@ class EvaluationService:
517
516
  async def run_evaluation(self) -> None:
518
517
  """Run the evaluation set using multiple worker tasks."""
519
518
  console.info(
520
- f"Starting evaluating {click.style(self.eval_set.name, fg='cyan')} evaluation set..."
519
+ f"Starting evaluating {click.style(self._eval_set.name, fg='cyan')} evaluation set..."
521
520
  )
522
521
 
523
522
  if self._report_progress and self._progress_reporter:
@@ -526,7 +525,7 @@ class EvaluationService:
526
525
  # Prepare items for progress tracker
527
526
  progress_items = [
528
527
  {"id": eval_item.id, "name": eval_item.name}
529
- for eval_item in self.eval_set.evaluations
528
+ for eval_item in self._eval_set.evaluations
530
529
  ]
531
530
 
532
531
  with console.evaluation_progress(progress_items) as progress_manager:
@@ -539,7 +538,7 @@ class EvaluationService:
539
538
  producer = asyncio.create_task(self._producer_task(task_queue))
540
539
 
541
540
  consumers = []
542
- for worker_id in range(self.num_workers):
541
+ for worker_id in range(self._num_workers):
543
542
  consumer = asyncio.create_task(
544
543
  self._consumer_task(
545
544
  task_queue, worker_id, results_queue, sw_progress_reporter_queue
@@ -11,6 +11,7 @@ from typing import Any, Dict, Optional, Type, TypeVar, cast, get_type_hints
11
11
  from opentelemetry import trace
12
12
  from opentelemetry.sdk.trace import TracerProvider
13
13
  from opentelemetry.sdk.trace.export import BatchSpanProcessor
14
+ from pydantic import BaseModel
14
15
 
15
16
  from uipath.tracing import LlmOpsHttpExporter
16
17
 
@@ -162,9 +163,11 @@ class UiPathRuntime(UiPathBaseRuntime):
162
163
  input_param = params[0]
163
164
  input_type = input_param.annotation
164
165
 
165
- # Case 2: Class or dataclass parameter
166
+ # Case 2: Class, dataclass, or Pydantic model parameter
166
167
  if input_type != inspect.Parameter.empty and (
167
- is_dataclass(input_type) or hasattr(input_type, "__annotations__")
168
+ is_dataclass(input_type)
169
+ or self._is_pydantic_model(input_type)
170
+ or hasattr(input_type, "__annotations__")
168
171
  ):
169
172
  try:
170
173
  valid_type = cast(Type[Any], input_type)
@@ -216,7 +219,16 @@ class UiPathRuntime(UiPathBaseRuntime):
216
219
  )
217
220
 
218
221
  def _convert_to_class(self, data: Dict[str, Any], cls: Type[T]) -> T:
219
- """Convert a dictionary to either a dataclass or regular class instance."""
222
+ """Convert a dictionary to either a dataclass, Pydantic model, or regular class instance."""
223
+ # Handle Pydantic models
224
+ try:
225
+ if inspect.isclass(cls) and issubclass(cls, BaseModel):
226
+ return cast(T, cls.model_validate(data))
227
+ except TypeError:
228
+ # issubclass can raise TypeError if cls is not a class
229
+ pass
230
+
231
+ # Handle dataclasses
220
232
  if is_dataclass(cls):
221
233
  field_types = get_type_hints(cls)
222
234
  converted_data = {}
@@ -227,13 +239,17 @@ class UiPathRuntime(UiPathBaseRuntime):
227
239
 
228
240
  value = data[field_name]
229
241
  if (
230
- is_dataclass(field_type) or hasattr(field_type, "__annotations__")
242
+ is_dataclass(field_type)
243
+ or self._is_pydantic_model(field_type)
244
+ or hasattr(field_type, "__annotations__")
231
245
  ) and isinstance(value, dict):
232
246
  typed_field = cast(Type[Any], field_type)
233
247
  value = self._convert_to_class(value, typed_field)
234
248
  converted_data[field_name] = value
235
249
 
236
250
  return cast(T, cls(**converted_data))
251
+
252
+ # Handle regular classes
237
253
  else:
238
254
  sig = inspect.signature(cls.__init__)
239
255
  params = sig.parameters
@@ -254,6 +270,7 @@ class UiPathRuntime(UiPathBaseRuntime):
254
270
 
255
271
  if (
256
272
  is_dataclass(param_type)
273
+ or self._is_pydantic_model(param_type)
257
274
  or hasattr(param_type, "__annotations__")
258
275
  ) and isinstance(value, dict):
259
276
  typed_param = cast(Type[Any], param_type)
@@ -265,22 +282,41 @@ class UiPathRuntime(UiPathBaseRuntime):
265
282
 
266
283
  return cls(**init_args)
267
284
 
285
+ def _is_pydantic_model(self, cls: Type[Any]) -> bool:
286
+ """Safely check if a class is a Pydantic model."""
287
+ try:
288
+ return inspect.isclass(cls) and issubclass(cls, BaseModel)
289
+ except TypeError:
290
+ # issubclass can raise TypeError if cls is not a class
291
+ return False
292
+
268
293
  def _convert_from_class(self, obj: Any) -> Dict[str, Any]:
269
- """Convert a class instance (dataclass or regular) to a dictionary."""
294
+ """Convert a class instance (dataclass, Pydantic model, or regular) to a dictionary."""
270
295
  if obj is None:
271
296
  return {}
272
297
 
273
- if is_dataclass(obj):
298
+ # Handle Pydantic models
299
+ if isinstance(obj, BaseModel):
300
+ return obj.model_dump()
301
+
302
+ # Handle dataclasses
303
+ elif is_dataclass(obj):
274
304
  # Make sure obj is an instance, not a class
275
305
  if isinstance(obj, type):
276
306
  return {}
277
307
  return asdict(obj)
308
+
309
+ # Handle regular classes
278
310
  elif hasattr(obj, "__dict__"):
279
311
  result = {}
280
312
  for key, value in obj.__dict__.items():
281
313
  # Skip private attributes
282
314
  if not key.startswith("_"):
283
- if hasattr(value, "__dict__") or is_dataclass(value):
315
+ if (
316
+ isinstance(value, BaseModel)
317
+ or hasattr(value, "__dict__")
318
+ or is_dataclass(value)
319
+ ):
284
320
  result[key] = self._convert_from_class(value)
285
321
  else:
286
322
  result[key] = value
@@ -14,6 +14,8 @@ from typing import (
14
14
  get_type_hints,
15
15
  )
16
16
 
17
+ from pydantic import BaseModel
18
+
17
19
  SchemaType = Literal["object", "integer", "double", "string", "boolean", "array"]
18
20
 
19
21
  TYPE_MAP: Dict[str, SchemaType] = {
@@ -50,7 +52,30 @@ def get_type_schema(type_hint: Any) -> Dict[str, Any]:
50
52
  return {"type": "object"}
51
53
 
52
54
  if inspect.isclass(type_hint):
53
- if is_dataclass(type_hint):
55
+ # Handle Pydantic models
56
+ if issubclass(type_hint, BaseModel):
57
+ properties = {}
58
+ required = []
59
+
60
+ # Get the model fields
61
+ model_fields = type_hint.model_fields
62
+
63
+ for field_name, field_info in model_fields.items():
64
+ # Use alias if defined, otherwise use field name
65
+ schema_field_name = field_info.alias if field_info.alias else field_name
66
+
67
+ # Get the field type schema
68
+ field_schema = get_type_schema(field_info.annotation)
69
+ properties[schema_field_name] = field_schema
70
+
71
+ # Check if field is required using Pydantic's built-in method
72
+ if field_info.is_required():
73
+ required.append(schema_field_name)
74
+
75
+ return {"type": "object", "properties": properties, "required": required}
76
+
77
+ # Handle dataclasses
78
+ elif is_dataclass(type_hint):
54
79
  properties = {}
55
80
  required = []
56
81
 
@@ -61,6 +86,8 @@ def get_type_schema(type_hint: Any) -> Dict[str, Any]:
61
86
  required.append(field.name)
62
87
 
63
88
  return {"type": "object", "properties": properties, "required": required}
89
+
90
+ # Handle regular classes with annotations
64
91
  elif hasattr(type_hint, "__annotations__"):
65
92
  properties = {}
66
93
  required = []
@@ -8,6 +8,7 @@ from typing import Any, Dict, List, Optional, Tuple
8
8
  from ..._services import (
9
9
  AssetsService,
10
10
  BucketsService,
11
+ ConnectionsService,
11
12
  ContextGroundingService,
12
13
  ProcessesService,
13
14
  )
@@ -47,6 +48,7 @@ supported_bindings_by_service = {
47
48
  "processes": ProcessesService,
48
49
  "buckets": BucketsService,
49
50
  "context_grounding": ContextGroundingService,
51
+ "connections": ConnectionsService,
50
52
  }
51
53
 
52
54
 
@@ -103,7 +105,17 @@ class ServiceUsage:
103
105
 
104
106
  # custom logic for connections bindings
105
107
  elif self.service_name == "connections":
108
+ # First, try to get inferred bindings for connections if they exist
109
+ connections_service = supported_bindings_by_service.get("connections")
110
+ inferred_bindings = {}
111
+ if connections_service:
112
+ inferred_bindings = get_inferred_bindings_names(connections_service)
113
+
106
114
  for call in self.method_calls:
115
+ # Skip methods that are decorated with @infer_bindings(ignore=False)
116
+ if call.method_name in inferred_bindings:
117
+ continue
118
+
107
119
  if len(call.args) > 0:
108
120
  connection_id = call.args[0]
109
121
  if connection_id:
@@ -68,6 +68,7 @@ def get_project_config(directory: str) -> dict[str, str]:
68
68
  "version": toml_data["version"],
69
69
  "authors": toml_data["authors"],
70
70
  "dependencies": toml_data.get("dependencies", {}),
71
+ "requires-python": toml_data.get("requires-python", {}),
71
72
  }
72
73
 
73
74
 
@@ -97,6 +98,11 @@ def validate_config(config: dict[str, str]) -> None:
97
98
  'Project authors cannot be empty. Please specify authors in pyproject.toml:\n authors = [{ name = "John Doe" }]'
98
99
  )
99
100
 
101
+ if not config["requires-python"] or config["requires-python"].strip() == "":
102
+ console.error(
103
+ "'requires-python' field cannot be empty. Please specify it in pyproject.toml: requires-python = \">=3.10\""
104
+ )
105
+
100
106
  invalid_chars = ["&", "<", ">", '"', "'", ";"]
101
107
  for char in invalid_chars:
102
108
  if char in config["project_name"]:
@@ -296,6 +302,7 @@ def read_toml_project(file_path: str) -> dict:
296
302
  "version": project["version"].strip(),
297
303
  "authors": author_name.strip(),
298
304
  "dependencies": dependencies,
305
+ "requires-python": project.get("requires-python", "").strip(),
299
306
  }
300
307
 
301
308
 
@@ -1,7 +1,8 @@
1
1
  # type: ignore
2
+ import ast
2
3
  import asyncio
3
4
  import os
4
- from typing import Optional, Tuple
5
+ from typing import List, Optional, Tuple
5
6
 
6
7
  import click
7
8
  from dotenv import load_dotenv
@@ -15,9 +16,18 @@ console = ConsoleLogger()
15
16
  load_dotenv(override=True)
16
17
 
17
18
 
19
+ class LiteralOption(click.Option):
20
+ def type_cast_value(self, ctx, value):
21
+ try:
22
+ return ast.literal_eval(value)
23
+ except Exception as e:
24
+ raise click.BadParameter(value) from e
25
+
26
+
18
27
  def eval_agent(
19
28
  entrypoint: Optional[str] = None,
20
29
  eval_set: Optional[str] = None,
30
+ eval_ids: Optional[List[str]] = None,
21
31
  workers: int = 8,
22
32
  no_report: bool = False,
23
33
  **kwargs,
@@ -27,6 +37,7 @@ def eval_agent(
27
37
  Args:
28
38
  entrypoint: Path to the agent script to evaluate (optional, will auto-discover if not provided)
29
39
  eval_set: Path to the evaluation set JSON file (optional, will auto-discover if not provided)
40
+ eval_ids: Optional list of evaluation IDs
30
41
  workers: Number of parallel workers for running evaluations
31
42
  no_report: Do not report the evaluation results
32
43
  **kwargs: Additional arguments for future extensibility
@@ -41,8 +52,13 @@ def eval_agent(
41
52
  if workers < 1:
42
53
  return False, "Number of workers must be at least 1", None
43
54
 
55
+ print("EVAL SET")
56
+ print(eval_set)
57
+ if eval_set is not None and len(eval_set) == 0:
58
+ return False, "Evaluation set must not be empty", None
59
+
44
60
  service = EvaluationService(
45
- entrypoint, eval_set, workers, report_progress=not no_report
61
+ entrypoint, eval_set, eval_ids, workers, report_progress=not no_report
46
62
  )
47
63
  asyncio.run(service.run_evaluation())
48
64
 
@@ -55,6 +71,7 @@ def eval_agent(
55
71
  @click.command()
56
72
  @click.argument("entrypoint", required=False)
57
73
  @click.argument("eval_set", required=False)
74
+ @click.option("--eval-ids", cls=LiteralOption, default="[]")
58
75
  @click.option(
59
76
  "--no-report",
60
77
  is_flag=True,
@@ -69,20 +86,28 @@ def eval_agent(
69
86
  )
70
87
  @track(when=lambda *_a, **_kw: os.getenv(ENV_JOB_ID) is None)
71
88
  def eval(
72
- entrypoint: Optional[str], eval_set: Optional[str], no_report: bool, workers: int
89
+ entrypoint: Optional[str],
90
+ eval_set: Optional[str],
91
+ eval_ids: List[str],
92
+ no_report: bool,
93
+ workers: int,
73
94
  ) -> None:
74
95
  """Run an evaluation set against the agent.
75
96
 
76
97
  Args:
77
98
  entrypoint: Path to the agent script to evaluate (optional, will auto-discover if not specified)
78
99
  eval_set: Path to the evaluation set JSON file (optional, will auto-discover if not specified)
100
+ eval_ids: Optional list of evaluation IDs
79
101
  workers: Number of parallel workers for running evaluations
80
102
  no_report: Do not report the evaluation results
81
103
  """
82
104
  success, error_message, info_message = eval_agent(
83
- entrypoint=entrypoint, eval_set=eval_set, workers=workers, no_report=no_report
105
+ entrypoint=entrypoint,
106
+ eval_set=eval_set,
107
+ eval_ids=eval_ids,
108
+ workers=workers,
109
+ no_report=no_report,
84
110
  )
85
-
86
111
  if error_message:
87
112
  console.error(error_message)
88
113
  click.get_current_context().exit(1)